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

Calculates the size effect. More...

#include <SizeEffectLowerBounded.h>

Inheritance diagram for clSizeEffectLowerBounded:
clSizeEffectBase

Public Member Functions

 clSizeEffectLowerBounded ()
 Constructor. More...
 
 ~clSizeEffectLowerBounded ()
 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_fXb
 Size effect variance parameter. More...
 
double * mp_fX0
 Size effect mode parameter. More...
 
double * mp_fMinDiam
 Size effect minimum diameter. More...
 

Detailed Description

Calculates the size effect.

Size Effect is calculated as:

SE = exp(-0.5(ln(diam/X0)/Xb)2)

where:

Size effect is subject to a minimum value for diameter, below which all trees will just get the minimum.

Copyright 2013 Charles D. Canham.

Author
Lora E. Murphy


Edit history:
--------------—
June 13, 2013 - Created for transferal of Weibull Climate Growth to the NCI framework (LEM)

Constructor & Destructor Documentation

◆ clSizeEffectLowerBounded()

clSizeEffectLowerBounded::clSizeEffectLowerBounded ( )

Constructor.

◆ ~clSizeEffectLowerBounded()

clSizeEffectLowerBounded::~clSizeEffectLowerBounded ( )

Destructor.

Member Function Documentation

◆ CalculateSizeEffect()

double clSizeEffectLowerBounded::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 clSizeEffectLowerBounded::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_fMinDiam

double* clSizeEffectLowerBounded::mp_fMinDiam
protected

Size effect minimum diameter.

Array is sized number of species.

◆ mp_fX0

double* clSizeEffectLowerBounded::mp_fX0
protected

Size effect mode parameter.

X0 in Size Effect equation above. Array is sized number of species.

◆ mp_fXb

double* clSizeEffectLowerBounded::mp_fXb
protected

Size effect variance parameter.

Xb in Size Effect equation above. Array is sized number of species.


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