27 #ifndef GOPTIMIZERPAR_HPP
28 #define GOPTIMIZERPAR_HPP
106 double value(
void)
const;
107 double error(
void)
const;
109 double min(
void)
const;
110 double max(
void)
const;
111 void value(
const double& value);
112 void error(
const double& error);
113 void gradient(
const double& gradient);
114 void min(
const double& min);
115 void max(
const double& max);
116 void range(
const double& min,
const double& max);
124 const double&
scale(
void)
const;
130 void factor_range(
const double& min,
const double& max);
131 void scale(
const double& scale);
157 const std::string&
name(
void)
const;
158 const std::string&
unit(
void)
const;
159 void name(
const std::string& name);
160 void unit(
const std::string& unit);
194 return (
"GOptimizerPar");
const double & factor_error(void) const
Return parameter factor error.
void remove_min(void)
Removes minimum boundary.
GOptimizerPar * clone(void) const
Clone parameter.
bool has_range(void) const
Signal if parameter has minimum and maximum boundaries.
const double & factor_gradient(void) const
Return parameter factor gradient.
bool has_factor_max(void) const
Signal if parameter has maximum factor boundary.
const std::string & name(void) const
Return parameter name.
XML element node class interface definition.
double gradient(void) const
Return parameter gradient.
GVector abs(const GVector &vector)
Computes absolute of vector elements.
bool m_free
Parameter is free.
void factor_range(const double &min, const double &max)
Set minimum and maximum parameter boundary factors.
GOptimizerPar(void)
Void constructor.
bool has_factor_min(void) const
Signal if parameter has minimum factor boundary.
Definition of interface for all GammaLib classes.
double max(void) const
Return parameter maximum boundary.
double m_factor_min
Parameter minimum factor value.
bool m_has_grad
Parameter has analytic gradient.
double min(const GVector &vector)
Computes minimum vector element.
std::string m_unit
Parameter unit.
double min(void) const
Return parameter minimum boundary.
bool is_free(void) const
Signal if parameter is free.
const double & scale(void) const
Return parameter scale.
bool has_grad(void) const
Signal if parameter gradient is computed analytically.
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.
Interface class for all GammaLib classes.
void fix(void)
Fix a parameter.
void autoscale(void)
Autoscale parameter.
GOptimizerPar & operator=(const GOptimizerPar &par)
Assignment operator.
double m_factor_value
Parameter factor value.
void clear(void)
Clear parameter.
void remove_max(void)
Removes maximum boundary.
double m_factor_error
Uncertainty in parameter factor value.
bool is_fixed(void) const
Signal if parameter is fixed.
void remove_range(void)
Removes minimum and maximum boundary.
std::string m_name
Parameter name.
double m_factor_max
Parameter maximum factor value.
bool has_max(void) const
Signal if parameter has maximum boundary.
std::string classname(void) const
Return class name.
double max(const GVector &vector)
Computes maximum vector element.
void free_members(void)
Delete class members.
const double & factor_min(void) const
Return parameter minimum factor boundary.
void init_members(void)
Initialise class members.
void range(const double &min, const double &max)
Set minimum and maximum parameter boundaries.
double value(void) const
Return parameter value.
bool has_min(void) const
Signal if parameter has minimum boundary.
const std::string & unit(void) const
Return parameter unit.
bool m_has_factor_max
Parameter has maximum factor boundary.
double error(void) const
Return parameter error.
double m_factor_gradient
Function factor gradient.
void copy_members(const GOptimizerPar &par)
Copy class members.
bool m_has_factor_min
Parameter has minimum factor boundary.
std::string print(const GChatter &chatter=NORMAL) const
Print parameter information.
const double & factor_value(void) const
Return parameter factor value.
virtual ~GOptimizerPar(void)
Destructor.
Optimizer parameter class.