SORTIE Core C++ Documentation
|
This calculates NCI for a tree according to the default function. More...
#include <NCITermDefault.h>
Public Member Functions | |
clNCITermDefault () | |
Constructor. More... | |
~clNCITermDefault () | |
Destructor. More... | |
ncivals | CalculateNCITerm (clTree *p_oTree, clTreePopulation *p_oPop, clPlot *p_oPlot, const float &fX, const float &fY, const int &iSpecies) |
Calculates NCI according to above equation. More... | |
void | DoSetup (clTreePopulation *p_oPop, clBehaviorBase *p_oNCI, xercesc::DOMElement *p_oElement) |
Does setup. More... | |
Public Member Functions inherited from clNCITermBase | |
clNCITermBase () | |
Constructor. More... | |
int | GetNumberNCIs () |
virtual void | PreCalcs (clTreePopulation *p_oPop) |
Performs calculations like either clGrowthBase::PreGrowthCalcs or clMortalityBase::PreMortCalcs. More... | |
virtual | ~clNCITermBase () |
Destructor. More... | |
bool | DoesRequireTargetDiam () |
Protected Attributes | |
double ** | mp_fLambda |
Lamba for NCI. More... | |
double * | mp_fMaxCrowdingRadius |
Maximum search radius, in meters, in which to look for crowding neighbors. More... | |
double * | mp_fAlpha |
Neighbor DBH effect. More... | |
double * | mp_fBeta |
Neighbor distance effect. More... | |
double * | mp_fMinimumNeighborDBH |
The minimum DBH, in cm, of neighbors to be included in NCI calculations. More... | |
double | m_fDbhDivisor |
The value to divide DBH by in NCI. More... | |
float | m_fMinSaplingHeight |
Minimum sapling height. More... | |
bool | m_bIncludeSnags |
Whether or not to include snags in NCI. More... | |
int | m_iNumTotalSpecies |
Number of total species. More... | |
Protected Attributes inherited from clNCITermBase | |
bool | bRequiresTargetDiam |
Whether or not this effect depends on a target diameter being available. More... | |
int | iNumNCIs |
Number of NCI values calculated and populated into ncivals. More... | |
This calculates NCI for a tree according to the default function.
NCIi is calculated as follows (simplifying the notation):
This returns 1 value for NCI.
clNCITermDefault::clNCITermDefault | ( | ) |
Constructor.
clNCITermDefault::~clNCITermDefault | ( | ) |
Destructor.
|
virtual |
Calculates NCI according to above equation.
p_oTree | Tree for which to calculate NCI. |
p_oPop | Tree population. |
p_oPlot | Plot object. |
fX | X coordinate for which to calculate NCI. |
fY | Y coordinate for which to calculate NCI. |
iSpecies | Species for which to calculate NCI. |
Implements clNCITermBase.
|
virtual |
Does setup.
p_oPop | Tree population. |
p_oNCI | NCI behavior object. |
p_oElement | Root element of the behavior. |
ModelException | if the max radius of neighbor effects is < 0, or if DBH divisor is <= 0. |
Implements clNCITermBase.
|
protected |
Whether or not to include snags in NCI.
|
protected |
The value to divide DBH by in NCI.
q in the NCI equation above. May be set to 1.
|
protected |
Minimum sapling height.
For doing neighbor searches.
|
protected |
Number of total species.
For the destructor.
|
protected |
Neighbor DBH effect.
α variable in equation above. Array sized number of species.
|
protected |
Neighbor distance effect.
β variable in equation above. Array sized number of species.
|
protected |
Lamba for NCI.
Array sized number of total species by number of total species.
|
protected |
Maximum search radius, in meters, in which to look for crowding neighbors.
Array sized number of species.
|
protected |
The minimum DBH, in cm, of neighbors to be included in NCI calculations.
Array assumed to be sized total number of species.