Class MEAL::ParameterPolicy
-
class ParameterPolicy : public MEAL::FunctionPolicy
Managers of Function parameters.
Subclassed by MEAL::Composite, MEAL::NoParameters, MEAL::OneParameter, MEAL::Parameters
Public Functions
-
virtual ParameterPolicy *clone(Function *new_context) const = 0
Clone constructor.
-
virtual unsigned get_nparam() const = 0
Return the number of parameters.
-
virtual std::string get_name(unsigned index) const = 0
Return the name of the specified parameter.
-
virtual std::string get_description(unsigned index) const = 0
Return the name of the specified parameter.
-
virtual double get_param(unsigned index) const = 0
Return the value of the specified parameter.
-
virtual void set_param(unsigned index, double value) = 0
Set the value of the specified parameter.
-
virtual double get_variance(unsigned index) const = 0
Return the variance of the specified parameter.
-
virtual void set_variance(unsigned index, double value) = 0
Set the variance of the specified parameter.
-
virtual bool get_infit(unsigned index) const = 0
Return true if parameter at index is to be fitted.
-
virtual void set_infit(unsigned index, bool flag) = 0
Set flag for parameter at index to be fitted.
Public Static Attributes
-
static bool auto_install
Install policy upon construction.
-
virtual ParameterPolicy *clone(Function *new_context) const = 0