Class MEAL::Parameters
-
class Parameters : public MEAL::ParameterPolicy
Implements parameter storage and access.
Public Functions
-
Parameters(const Parameters &np)
Copy constructor.
-
Parameters &operator=(const Parameters &np)
Assignment operator.
-
virtual Parameters *clone(Function*) const
Clone construtor.
-
inline virtual unsigned get_nparam() const
Return the number of parameters.
-
inline virtual std::string get_name(unsigned index) const
Return the name of the specified parameter.
-
inline void set_name(unsigned index, const std::string &name)
Return the name of the specified parameter.
-
inline virtual std::string get_description(unsigned index) const
Return the description of the specified parameter.
-
inline void set_description(unsigned index, const std::string &description)
Return the description of the specified parameter.
-
inline virtual double get_param(unsigned index) const
Return the value of the specified parameter.
-
virtual void set_param(unsigned index, double value)
Set the value of the specified parameter.
-
void swap_param(unsigned index, double &value)
Swap the value of the specified parameter.
-
inline virtual double get_variance(unsigned index) const
Return the variance of the specified parameter.
-
inline virtual void set_variance(unsigned index, double value)
Set the variance of the specified parameter.
-
inline virtual bool get_infit(unsigned index) const
Return true if parameter at index is to be fitted.
-
inline virtual void set_infit(unsigned index, bool flag)
Set flag for parameter at index to be fitted.
-
void resize(unsigned nparam)
Resize arrays, setting fit=true for new parameters.
-
void erase(unsigned iparam)
Erase the specified parameter.
-
Parameters(const Parameters &np)