GCBM
Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
Smoother Class Reference

#include <smoother.h>

Collaboration diagram for Smoother:
Collaboration graph

Public Member Functions

 Smoother ()
 
virtual ~Smoother ()
 
void smooth (const StandGrowthCurve &standGrowthCurve, ComponentBiomassCarbonCurve *carbonCurve, SpeciesType speciesType)
 
int getComponentSmoothingSubstitutionRegionPoint (const StandGrowthCurve &standGrowthCurve, SpeciesType speciesType)
 
void prepareSmoothingInputData (const ComponentBiomassCarbonCurve &carbonCurve, int substitutionPoint, int standMaxAge)
 
void clearAndReserveDataSpace (int workingFitingRange)
 
void minimize (double yValues[], double startingVals[])
 
int getFinalFittingRegionAndReplaceData (ComponentBiomassCarbonCurve &carbonCurve, int substitutionPoint, double merchCWeibullParameters[], double foliageCWeibullParameters[], double totalAGBioCWeibullParameters[])
 
std::vector< double > & smoothingMerchC ()
 
std::vector< double > & smoothingFoliageC ()
 
std::vector< double > & smoothingOtherC ()
 
std::vector< double > & smoothingTotalAGBioC ()
 
std::vector< double > & smoothingAageSerials ()
 

Static Public Member Functions

static double weibull_2Parameter (double t, double *p)
 

Public Attributes

const int extendedRegionSize = 15
 
const int smoothSampleSize = 50
 
const int numerOfParameters = 2
 

Private Attributes

std::vector< double > _smoothingMerchC
 
std::vector< double > _smoothingFoliageC
 
std::vector< double > _smoothingOtherC
 
std::vector< double > _smoothingTotalAGBioC
 
std::vector< double > _smoothingAageSerials
 
double _smoothingMaxMerchC = 0
 
double _smoothingMaxFoliageC = 0
 
double _smoothingMaxOtherC = 0
 
double _smoothingMaxTotalAGC = 0
 
double _smoothingMaxAge = 0
 

Constructor & Destructor Documentation

◆ Smoother()

Smoother ( )

◆ ~Smoother()

virtual ~Smoother ( )
virtual

Member Function Documentation

◆ clearAndReserveDataSpace()

void clearAndReserveDataSpace ( int  workingFitingRange)

◆ getComponentSmoothingSubstitutionRegionPoint()

int getComponentSmoothingSubstitutionRegionPoint ( const StandGrowthCurve standGrowthCurve,
SpeciesType  speciesType 
)

◆ getFinalFittingRegionAndReplaceData()

int getFinalFittingRegionAndReplaceData ( ComponentBiomassCarbonCurve carbonCurve,
int  substitutionPoint,
double  merchCWeibullParameters[],
double  foliageCWeibullParameters[],
double  totalAGBioCWeibullParameters[] 
)

◆ minimize()

void minimize ( double  yValues[],
double  startingVals[] 
)

◆ prepareSmoothingInputData()

void prepareSmoothingInputData ( const ComponentBiomassCarbonCurve carbonCurve,
int  substitutionPoint,
int  standMaxAge 
)

◆ smooth()

void smooth ( const StandGrowthCurve standGrowthCurve,
ComponentBiomassCarbonCurve carbonCurve,
SpeciesType  speciesType 
)

◆ smoothingAageSerials()

std::vector<double>& smoothingAageSerials ( )

◆ smoothingFoliageC()

std::vector<double>& smoothingFoliageC ( )

◆ smoothingMerchC()

std::vector<double>& smoothingMerchC ( )

◆ smoothingOtherC()

std::vector<double>& smoothingOtherC ( )

◆ smoothingTotalAGBioC()

std::vector<double>& smoothingTotalAGBioC ( )

◆ weibull_2Parameter()

double weibull_2Parameter ( double  t,
double *  p 
)
static

Member Data Documentation

◆ _smoothingAageSerials

std::vector<double> _smoothingAageSerials
private

◆ _smoothingFoliageC

std::vector<double> _smoothingFoliageC
private

◆ _smoothingMaxAge

double _smoothingMaxAge = 0
private

◆ _smoothingMaxFoliageC

double _smoothingMaxFoliageC = 0
private

◆ _smoothingMaxMerchC

double _smoothingMaxMerchC = 0
private

◆ _smoothingMaxOtherC

double _smoothingMaxOtherC = 0
private

◆ _smoothingMaxTotalAGC

double _smoothingMaxTotalAGC = 0
private

◆ _smoothingMerchC

std::vector<double> _smoothingMerchC
private

◆ _smoothingOtherC

std::vector<double> _smoothingOtherC
private

◆ _smoothingTotalAGBioC

std::vector<double> _smoothingTotalAGBioC
private

◆ extendedRegionSize

const int extendedRegionSize = 15

◆ numerOfParameters

const int numerOfParameters = 2

◆ smoothSampleSize

const int smoothSampleSize = 50

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