FMT 0.9.8
Forest management tools for forest planning
|
#include <FMTyieldmodeldecisiontree.hpp>
Public Member Functions | |
FMTyieldmodeldecisiontree ()=default | |
FMTyieldmodeldecisiontree (const FMTyieldmodeldecisiontree &rhs) | |
FMTyieldmodeldecisiontree & | operator= (const FMTyieldmodeldecisiontree &rhs)=default |
~FMTyieldmodeldecisiontree ()=default | |
FMTyieldmodeldecisiontree (const boost::property_tree::ptree &jsonProps, const std::vector< std::string > &inputYields, const Core::FMTmask &mainmask) | |
std::unique_ptr< FMTyieldmodel > | Clone () const |
const std::vector< double > | Predict (const Core::FMTyieldrequest &request) const |
virtual std::unique_ptr< FMTyieldmodel > | presolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &newthemes) const |
virtual std::unique_ptr< FMTyieldmodel > | postsolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &basethemes) const |
virtual | operator std::string () const |
virtual std::vector< std::vector< double > > | getperiodicvalues () const |
Public Member Functions inherited from Core::FMTyieldmodel | |
virtual | ~FMTyieldmodel () |
FMTyieldmodel () | |
FMTyieldmodel (const FMTyieldmodel &rhs)=default | |
FMTyieldmodel & | operator= (const FMTyieldmodel &rhs)=default |
const std::string & | GetModelName () const |
const std::vector< std::string > & | GetModelYields () const |
virtual std::unique_ptr< FMTyieldmodel > | Clone () const =0 |
virtual const std::vector< double > | Predict (const Core::FMTyieldrequest &request) const =0 |
virtual std::unique_ptr< FMTyieldmodel > | presolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &newthemes) const |
virtual std::unique_ptr< FMTyieldmodel > | postsolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &basethemes) const |
virtual | operator std::string () const =0 |
virtual std::vector< std::vector< double > > | getperiodicvalues () const |
Public Member Functions inherited from Core::FMTobject | |
FMTobject () | |
virtual | ~FMTobject () |
FMTobject (const std::shared_ptr< Exception::FMTexceptionhandler > exhandler) | |
FMTobject (const FMTobject &rhs) | |
FMTobject & | operator= (const FMTobject &rhs) |
virtual void | passinlogger (const std::shared_ptr< Logging::FMTlogger > &logger) |
void | passinexceptionhandler (const std::shared_ptr< Exception::FMTexceptionhandler > &exhandler) |
void | redirectlogtofile (const std::string &location) |
virtual void | setdefaultlogger () |
virtual void | setquietlogger () |
virtual void | settasklogger () |
virtual void | setdebuglogger () |
void | setdefaultexceptionhandler () |
void | setquietexceptionhandler () |
void | setdebugexceptionhandler () |
void | setfreeexceptionhandler () |
void | disablenestedexceptions () |
void | enablenestedexceptions () |
void | seterrorstowarnings (const std::vector< Exception::FMTexc > &errors) |
void | setmaxwarningsbeforesilenced (const size_t &maxwarningcount) |
Static Public Member Functions | |
static std::string | GetModelType () |
Static Public Member Functions inherited from Core::FMTobject | |
static std::string | getruntimelocation () |
static unsigned long long | getavailablememory () |
Additional Inherited Members | |
Protected Member Functions inherited from Core::FMTobject | |
template<class Archive > | |
void | forcesave (Archive &ar, const unsigned int version) const |
template<class Archive > | |
void | forceload (Archive &ar, const unsigned int version) |
void | checksignals () const |
void | setCPLhandler () |
Static Protected Member Functions inherited from Core::FMTobject | |
static std::chrono::time_point< std::chrono::high_resolution_clock > | getclock () |
template<class chrono > | |
static double | getduration (const std::chrono::time_point< std::chrono::high_resolution_clock > &startclock) |
static std::string | getdurationinseconds (const std::chrono::time_point< std::chrono::high_resolution_clock > &startclock) |
Protected Attributes inherited from Core::FMTyieldmodel | |
std::string | modelName |
std::vector< std::string > | modelYields = {} |
const std::string | JSON_PROP_MODEL_NAME = "modelFileName" |
Static Protected Attributes inherited from Core::FMTobject | |
static std::shared_ptr< Exception::FMTexceptionhandler > | _exhandler |
A shared pointer to the exception handler. | |
static std::shared_ptr< Logging::FMTlogger > | _logger |
A shared pointer to the logger. | |
FMTyieldmodeldecisiontree use a decision tree based on outputs of the model (growth only) to get yield values.
|
default |
Default constructor.
Core::FMTyieldmodeldecisiontree::FMTyieldmodeldecisiontree | ( | const FMTyieldmodeldecisiontree & | rhs | ) |
Copy constructor.
|
default |
Default destructor.
Core::FMTyieldmodeldecisiontree::FMTyieldmodeldecisiontree | ( | const boost::property_tree::ptree & | jsonProps, |
const std::vector< std::string > & | inputYields, | ||
const Core::FMTmask & | mainmask | ||
) |
Construct a FMTyieldmodeldecisiontree based on a JSON file and an input yield name list and also on the global mask
|
virtual |
Implements FMTyieldmodel::Clone().
Implements Core::FMTyieldmodel.
|
static |
Return the modeltype of the FMTyieldmodel.
|
virtual |
Try to turn the FMTyieldmodel into periodic constant values. if returns an non empty vector then each first dimension is the yield id and each second dimension are the periodic value calculated by the yield.
Reimplemented from Core::FMTyieldmodel.
|
virtual |
When it comes to write down in a string the yield model.
Implements Core::FMTyieldmodel.
|
default |
Default equality operator.
|
virtual |
Change the output and constraints mask to return to the original constraints and outputs.
Reimplemented from Core::FMTyieldmodel.
|
virtual |
Runs the decision tree so if the values are not set build a naturalgrowth model and run the decision tree and get the decision for all periods. Finaly return the predictions.
Implements Core::FMTyieldmodel.
|
virtual |
Return a presolved FMTyieldmodeldecisiontree
Reimplemented from Core::FMTyieldmodel.