36 #define G_CONSTRUCT "GModelPar::GModelPar(std::string&, double&, double&)"
37 #define G_FACTOR_VALUE "GModelPar::factor_value(double&)"
38 #define G_FACTOR_MIN "GModelPar::factor_min(double&)"
39 #define G_FACTOR_MAX "GModelPar::factor_max(double&)"
40 #define G_SCALE "GModelPar::scale(double&)"
41 #define G_READ "GModelPar::read(GXmlElement&)"
108 const double& factor,
109 const double& scale) :
298 std::string msg =
"The model parameter \""+
m_name+
299 "\" in the XML document has a minimum boundary "+
301 " that is larger than the maximum boundary "+
309 std::string msg =
"The model parameter \""+
m_name+
310 "\" in the XML document has a value "+
312 " that is smaller than the minimum boundary "+
319 std::string msg =
"The model parameter \""+
m_name+
320 "\" in the XML document has a value "+
322 " that is larger than the maximum boundary "+
void init_members(void)
Initialise class members.
GModelPar * clone(void) const
Clone model parameter.
virtual std::string print(const GChatter &chatter=NORMAL, const int &indent=0) const
Print XML element.
bool has_factor_max(void) const
Signal if parameter has maximum factor boundary.
GModelPar(void)
Void constructor.
void write(GXmlElement &xml) const
Set or update parameter attributes in XML element.
bool has_factor_min(void) const
Signal if parameter has minimum factor boundary.
double max(void) const
Return parameter maximum boundary.
double min(void) const
Return parameter minimum boundary.
bool is_free(void) const
Signal if parameter is free.
void copy_members(const GModelPar &par)
Copy class members.
GModelPar & operator=(const GModelPar &par)
Assignment operator.
Model parameter class interface definition.
virtual ~GModelPar(void)
Destructor.
const GXmlAttribute * attribute(const int &index) const
Return attribute.
double m_scale
Parameter scaling (true = factor * scale)
const double & factor_max(void) const
Return parameter maximum factor boundary.
void free(void)
Free a parameter.
void remove_factor_max(void)
Removes maximum factor boundary.
void remove_factor_min(void)
Removes minimum factor boundary.
void fix(void)
Fix a parameter.
GOptimizerPar & operator=(const GOptimizerPar &par)
Assignment operator.
double m_factor_value
Parameter factor value.
double m_factor_error
Uncertainty in parameter factor value.
std::string m_name
Parameter name.
bool has_max(void) const
Signal if parameter has maximum boundary.
const double & factor_min(void) const
Return parameter minimum factor boundary.
void read(const GXmlElement &xml)
Extract parameter attributes from XML element.
double value(void) const
Return parameter value.
bool has_min(void) const
Signal if parameter has minimum boundary.
Exception handler interface definition.
std::string tolower(const std::string &s)
Convert string to lower case.
void free_members(void)
Delete class members.
double todouble(const std::string &arg)
Convert string into double precision value.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.
Optimizer parameter class.