|
| void | set_function (const model_function_2D function) |
| | set the model function More...
|
| |
| double | operator() (const double xx, const double yy, std::vector< double > ¶meters) const override |
| | evaluate the model function at xx, yy More...
|
| |
| std::vector< std::vector< double > > | operator() (const std::vector< double > xx, const std::vector< double > yy, std::vector< double > ¶meters) const override |
| | evaluate the model function at xx, yy More...
|
| |
| void | stats_from_chains (const std::vector< double > xx, const std::vector< double > yy, std::vector< std::vector< double >> &median_model, std::vector< std::vector< double >> &low_model, std::vector< std::vector< double >> &up_model, const int start=0, const int thin=1) override |
| | compute the median and percentiles of the model from MCMC chains More...
|
| |
| void | write (const std::string output_dir, const std::string output_file, const std::vector< double > xx, const std::vector< double > yy, const std::vector< double > parameters) override |
| | write the model at xx, yy for given parameters More...
|
| |
| void | write_at_bestfit (const std::string output_dir, const std::string output_file, const std::vector< double > xx, const std::vector< double > yy) override |
| | write the model at xx, yy with best-fit parameters obtained from likelihood maximization
More...
|
| |
| void | write_from_chains (const std::string output_dir, const std::string output_file, const std::vector< double > xx, const std::vector< double > yy, const int start=0, const int thin=1) override |
| | write the model at xx, yy computing 16th, 50th and 84th percentiles from the chains. More...
|
| |
|
|
| Model2D () |
| | default constructor
|
| |
| | Model2D (model_function_2D function, const size_t nparameters, std::vector< ParameterType > parameterTypes={}, std::vector< std::string > parameterNames={}, std::shared_ptr< void > inputs=NULL) |
| | constructor More...
|
| |
|
| ~Model2D ()=default |
| | default destructor
|
| |
| Dim | dimension () const |
| | return the model dimension More...
|
| |
| void | set_function (const model_function_1D function) |
| | set the model function, for Model1D More...
|
| |
| void | set_function (const std::vector< double >(*function)(const std::vector< double > xx, std::vector< double > &val)) |
| | set the model function, for Model1D More...
|
| |
| void | set_function (const model_function_2D function) |
| | set the model function, for Model2D More...
|
| |
| void | set_inputs (std::shared_ptr< void > inputs) |
| | set the model inputs More...
|
| |
| void | set_parameters (const std::shared_ptr< ModelParameters > parameters) |
| | set the model parameters More...
|
| |
| void | set_parameters (const size_t nparameters, std::vector< ParameterType > parameterTypes, std::vector< std::string > parameterNames) |
| | set the model parameters More...
|
| |
| std::shared_ptr< void > | inputs () |
| | return the model inputs More...
|
| |
| std::shared_ptr< ModelParameters > | parameters () |
| | return the model parameters More...
|
| |
| std::vector< std::vector< double > > | operator() (const std::vector< std::vector< double >> xx, std::vector< double > ¶meters) const |
| | evalueate the model function at xx, for Model1D More...
|
| |
| virtual double | operator() (const double xx, std::vector< double > ¶meters) const |
| | evaluate the model function at xx, for Model1D More...
|
| |
| virtual std::vector< double > | operator() (const std::vector< double > xx, std::vector< double > ¶meters) const |
| | evaluate the model function at xx, for Model1D More...
|
| |
| void | stats_from_chains (const std::vector< std::vector< double >> xx, std::vector< std::vector< double >> &median_model, std::vector< std::vector< double >> &low_model, std::vector< std::vector< double >> &up_model, const int start=0, const int thin=1) |
| | compute the median and percentiles of the model from MCMC chains More...
|
| |
| virtual void | stats_from_chains (const std::vector< double > xx, std::vector< double > &median_model, std::vector< double > &low_model, std::vector< double > &up_model, const int start=0, const int thin=1) |
| | compute the median and percentiles of the model from MCMC chains More...
|
| |
| virtual void | write (const std::string output_dir, const std::string output_file, const std::vector< double > xx, const std::vector< double > parameters) |
| | write the model at xx for given parameters More...
|
| |
| virtual void | write_at_bestfit (const std::string output_dir, const std::string output_file, const std::vector< double > xx) |
| | write the model at xx with best-fit parameters obtained from likelihood maximization More...
|
| |
| virtual void | write_from_chains (const std::string output_dir, const std::string output_file, const std::vector< double > xx, const int start=0, const int thin=1) |
| | write the model at xx computing 16th, 50th and 84th percentiles from the chains. More...
|
| |
|
| Model ()=default |
| | default constructor
|
| |
| | Model (const int nparameters, std::vector< ParameterType > parameterTypes, std::vector< std::string > parameterNames, const std::shared_ptr< void > inputs) |
| | constructor More...
|
| |
|
virtual | ~Model ()=default |
| | default destructor
|
| |
The class Model2D.
This class is used to define 2D models
Definition at line 60 of file Model2D.h.