SORTIE Core C++ Documentation
|
This returns the precipitation effect using a double logistic function. More...
#include <PrecipitationEffectDoubleLogistic.h>
Public Types | |
enum | precipType { mean_precip, seasonal_precip, water_deficit } |
Precipitation type. More... | |
Public Types inherited from clPrecipitationEffectBase | |
enum | precipType { mean_precip, seasonal_precip, water_deficit } |
Precipitation type. More... | |
Public Member Functions | |
clPrecipitationEffectDoubleLogistic () | |
Constructor. More... | |
~clPrecipitationEffectDoubleLogistic () | |
Destructor. More... | |
double | CalculatePrecipitationEffect (clPlot *p_oPlot, int iSpecies) |
Calculates precipitation effect for a particular species. More... | |
void | DoSetup (clTreePopulation *p_oPop, clBehaviorBase *p_oNCI, xercesc::DOMElement *p_oElement) |
Does any desired setup. More... | |
Public Member Functions inherited from clPrecipitationEffectBase | |
clPrecipitationEffectBase () | |
Constructor. More... | |
virtual | ~clPrecipitationEffectBase () |
Destructor. More... | |
bool | DoesRequireTargetDiam () |
Protected Types | |
typedef double(clPlot::* | Ptr2Precip) () |
Define a type for pointers to plot functions for getting precipitation. More... | |
Protected Attributes | |
Ptr2Precip | m_precip |
Pointer for the appropriate function for getting precip. More... | |
double * | mp_fAl |
Precipitation effect al. More... | |
double * | mp_fBl |
Precipitation effect bl. More... | |
double * | mp_fCl |
Precipitation effect cl. More... | |
double * | mp_fAh |
Precipitation effect ah. More... | |
double * | mp_fBh |
Precipitation effect bh. More... | |
double * | mp_fCh |
Precipitation effect ch. More... | |
Protected Attributes inherited from clPrecipitationEffectBase | |
bool | bRequiresTargetDiam |
Whether or not this effect depends on a target diameter being available. More... | |
This returns the precipitation effect using a double logistic function.
Three possible precipitation values can be used: mean annual precipitation, seasonal precipitation, or annual water deficit. The function is:
Precipitation Effect = (al + ((1-al)/(1+(bl/ppt)^cl))) * (ah + ((1-ah)/(1+(ppt/bh)^ch)))
where:
Copyright 2013 Charles D. Canham.
Edit history:
--------------—
December 20, 2013 - Created (LEM)
|
protected |
Define a type for pointers to plot functions for getting precipitation.
clPrecipitationEffectDoubleLogistic::clPrecipitationEffectDoubleLogistic | ( | ) |
Constructor.
clPrecipitationEffectDoubleLogistic::~clPrecipitationEffectDoubleLogistic | ( | ) |
Destructor.
|
virtual |
Calculates precipitation effect for a particular species.
p_oPlot | Plot object for querying for precipitation values. |
iSpecies | Species for which to calculate precipitation effect. |
Implements clPrecipitationEffectBase.
|
virtual |
Does any desired setup.
p_oPop | Tree population. |
p_oNCI | NCI behavior object. |
p_oElement | Root element of the behavior. |
ModelException | if Storm Effect parameters are not between 0 and 1. |
Implements clPrecipitationEffectBase.
|
protected |
Pointer for the appropriate function for getting precip.
|
protected |
Precipitation effect ah.
Array is sized number of species.
|
protected |
Precipitation effect al.
Array is sized number of species.
|
protected |
Precipitation effect bh.
Array is sized number of species.
|
protected |
Precipitation effect bl.
Array is sized number of species.
|
protected |
Precipitation effect ch.
Array is sized number of species.
|
protected |
Precipitation effect cl.
Array is sized number of species.