SORTIE Core C++ Documentation
Public Member Functions | Protected Attributes | List of all members
clSizeEffectPowerFunction Class Reference

Calculates the size effect as a power function. More...

#include <SizeEffectPowerFunction.h>

Inheritance diagram for clSizeEffectPowerFunction:
clSizeEffectBase

Public Member Functions

 clSizeEffectPowerFunction ()
 Constructor. More...
 
 ~clSizeEffectPowerFunction ()
 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

double * mp_fA
 Size effect "a" parameter. More...
 
double * mp_fB
 Size effect "b" parameter. More...
 

Detailed Description

Calculates the size effect as a power function.

Size Effect is calculated as:

Size Effect = a * diamb

where:

Constructor & Destructor Documentation

◆ clSizeEffectPowerFunction()

clSizeEffectPowerFunction::clSizeEffectPowerFunction ( )

Constructor.

◆ ~clSizeEffectPowerFunction()

clSizeEffectPowerFunction::~clSizeEffectPowerFunction ( )

Destructor.

Member Function Documentation

◆ CalculateSizeEffect()

double clSizeEffectPowerFunction::CalculateSizeEffect ( clTree p_oTree,
const float &  fDiam 
)
virtual

Calculates size effect.

This is bounded between 0 and 1.

Parameters
p_oTreeTree for which to calculate size effect.
fDiamDiameter of tree. Diameter at 10 cm for seedlings, DBH for all other types.

Implements clSizeEffectBase.

◆ DoSetup()

void clSizeEffectPowerFunction::DoSetup ( clTreePopulation p_oPop,
clBehaviorBase p_oNCI,
xercesc::DOMElement *  p_oElement 
)
virtual

Does any desired setup.

Parameters
p_oPopTree population.
p_oNCINCI behavior object.
p_oElementRoot element of the behavior.
Exceptions
ModelExceptionif X0 is < 0 or Xb = 0.

Implements clSizeEffectBase.

Member Data Documentation

◆ mp_fA

double* clSizeEffectPowerFunction::mp_fA
protected

Size effect "a" parameter.

Array is sized number of species.

◆ mp_fB

double* clSizeEffectPowerFunction::mp_fB
protected

Size effect "b" parameter.

Array is sized number of species.


The documentation for this class was generated from the following file: