Class MEAL::OneParameter

class OneParameter : public MEAL::ParameterPolicy

Abstract base class implements parameter storage and access.

Subclassed by MEAL::CyclicParameter

Public Functions

OneParameter(Function *context = 0)

Default constructor.

OneParameter(const OneParameter &np)

Copy constructor.

OneParameter &operator=(const OneParameter &np)

Assignment operator.

virtual OneParameter *clone(Function *context) const

Clone operator.

inline std::string get_name() const

Return the name of the parameter.

inline void set_name(const std::string &_name)

Set the name of the parameter.

inline std::string get_description() const

Return the description of the parameter.

inline void set_description(const std::string &_description)

Set the description of the parameter.

inline virtual double get_param() const

Return the value of the parameter.

virtual void set_param(double value)

Set the value of the parameter.

inline double get_variance() const

Return the variance of the parameter.

inline void set_variance(double value)

Set the variance of the parameter.

inline bool get_infit() const

Return true if parameter is to be fitted.

inline void set_infit(bool flag = true)

Set flag for parameter to be fitted.

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)

Set 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)

Set the description of the specified parameter.

inline virtual double get_param(unsigned index) const

Return the value of the specified parameter.

inline virtual void set_param(unsigned index, double value)

Set 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.