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