Go to the documentation of this file. 1 #ifndef MOJA_MODULES_CBM_SMOOTHER_H_
2 #define MOJA_MODULES_CBM_SMOOTHER_H_
4 #include "moja/modules/cbm/_modules.cbm_exports.h"
5 #include "moja/flint/modulebase.h"
18 const int extendedRegionSize = 15;
19 const int smoothSampleSize = 50;
20 const int numerOfParameters = 2;
26 int getComponentSmoothingSubstitutionRegionPoint(
31 int substitutionPoint,
34 void clearAndReserveDataSpace(
int workingFitingRange);
36 void minimize(
double yValues[],
double startingVals[]);
39 static double weibull_2Parameter(
double t,
double* p);
41 int getFinalFittingRegionAndReplaceData(
43 int substitutionPoint,
44 double merchCWeibullParameters[],
45 double foliageCWeibullParameters[],
46 double totalAGBioCWeibullParameters[]);
57 std::vector<double> _smoothingMerchC;
63 double _smoothingMaxMerchC = 0;
64 double _smoothingMaxFoliageC = 0;
65 double _smoothingMaxOtherC = 0;
66 double _smoothingMaxTotalAGC = 0;
67 double _smoothingMaxAge = 0;
std::vector< double > & smoothingOtherC()
Definition: smoother.h:50
std::vector< double > & smoothingMerchC()
Definition: smoother.h:48
Definition: ageclasshelper.cpp:12
Smoother()
Definition: smoother.h:15
std::vector< double > & smoothingFoliageC()
Definition: smoother.h:49
virtual ~Smoother()
Definition: smoother.h:16
Definition: componentbiomasscarboncurve.h:14
SpeciesType
Enumeration of tree species type, softwood or hardwood.
Definition: treespecies.h:14
std::vector< double > _smoothingAageSerials
Definition: smoother.h:61
Definition: smoother.h:13
Definition: standgrowthcurve.h:16
std::vector< double > _smoothingOtherC
Definition: smoother.h:59
std::vector< double > _smoothingFoliageC
Definition: smoother.h:58
std::vector< double > & smoothingAageSerials()
Definition: smoother.h:52
std::vector< double > _smoothingTotalAGBioC
Definition: smoother.h:60
Definition: ageclasshelper.cpp:10
std::vector< double > & smoothingTotalAGBioC()
Definition: smoother.h:51