SORTIE Core C++ Documentation
|
Calculates a size effect based on a shifted lognormal function. More...
#include <SizeEffectShiftedLogInf.h>
Public Member Functions | |
clSizeEffectShiftedLogInf () | |
Constructor. More... | |
~clSizeEffectShiftedLogInf () | |
Destructor. More... | |
double | CalculateSizeEffect (clTree *p_oTree, const float &fDiam) |
Calculates size effect. More... | |
void | DoSetup (clTreePopulation *p_oPop, clBehaviorBase *p_oNCI, xercesc::DOMElement *p_oElement) |
Does any desired setup. More... | |
Public Member Functions inherited from clSizeEffectBase | |
virtual void | PreCalcs (clTreePopulation *p_oPop) |
Performs calculations like either clGrowthBase::PreGrowthCalcs or clMortalityBase::PreMortCalcs. More... | |
virtual | ~clSizeEffectBase () |
Destructor. More... | |
Protected Attributes | |
short int ** | mp_iDataCodes |
Codes for "YearsInfested" data member. More... | |
double * | mp_fXb |
Size effect variance parameter for uninfested trees. More... | |
double * | mp_fX0 |
Size effect mode parameter for uninfested trees. More... | |
double * | mp_fXp |
Size effect shift parameter for uninfested trees. More... | |
double * | mp_fXbInf |
Size effect variance parameter for infested trees. More... | |
double * | mp_fX0Inf |
Size effect mode parameter for infested trees. More... | |
double * | mp_fXpInf |
Size effect shift parameter for infested trees. More... | |
double * | mp_fMinDiam |
Size effect minimum diameter. More... | |
short int | m_iNumSpecies |
Number of species. More... | |
Calculates a size effect based on a shifted lognormal function.
This uses two different sets of parameters, depending on whether a tree is infected or not.
Size Effect is calculated as:
where:
Insect infestation is determined by the behavior of class clInsectInfestation or clDensDepInfestation. This class expects to find a "YearsInfested" int data member to be present for all trees to which this behavior is applied.
clSizeEffectShiftedLogInf::clSizeEffectShiftedLogInf | ( | ) |
Constructor.
clSizeEffectShiftedLogInf::~clSizeEffectShiftedLogInf | ( | ) |
Destructor.
|
virtual |
Calculates size effect.
This is bounded between 0 and 1.
p_oTree | Tree for which to calculate size effect. |
fDiam | Diameter of tree. Diameter at 10 cm for seedlings, DBH for all other types. |
Implements clSizeEffectBase.
|
virtual |
Does any desired setup.
p_oPop | Tree population. |
p_oNCI | NCI behavior object. |
p_oElement | Root element of the behavior. |
ModelException | if X0 is < 0 or Xb = 0. |
Implements clSizeEffectBase.
|
protected |
Number of species.
For destructor.
|
protected |
Size effect minimum diameter.
Array is sized number of species.
|
protected |
Size effect mode parameter for uninfested trees.
X0 in Size Effect equation above. Array is sized number of species.
|
protected |
Size effect mode parameter for infested trees.
X0 in Size Effect equation above. Array is sized number of species.
|
protected |
Size effect variance parameter for uninfested trees.
Xb in Size Effect equation above. Array is sized number of species.
|
protected |
Size effect variance parameter for infested trees.
Xb in Size Effect equation above. Array is sized number of species.
|
protected |
Size effect shift parameter for uninfested trees.
Xp in Size Effect equation above. Array is sized number of species.
|
protected |
Size effect shift parameter for infested trees.
Xp in Size Effect equation above. Array is sized number of species.
|
protected |
Codes for "YearsInfested" data member.
Array size is number of species by number of types.