GammaLib  1.7.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GOptimizerPar Class Reference

Optimizer parameter class. More...

#include <GOptimizerPar.hpp>

Inheritance diagram for GOptimizerPar:
GBase GModelPar

Public Member Functions

 GOptimizerPar (void)
 Void constructor. More...
 
 GOptimizerPar (const std::string &name, const double &value)
 Parameter constructor. More...
 
 GOptimizerPar (const std::string &name, const double &factor, const double &scale)
 Parameter constructor. More...
 
 GOptimizerPar (const GOptimizerPar &par)
 Copy constructor. More...
 
virtual ~GOptimizerPar (void)
 Destructor. More...
 
GOptimizerParoperator= (const GOptimizerPar &par)
 Assignment operator. More...
 
double value (void) const
 Return parameter value. More...
 
double error (void) const
 Return parameter error. More...
 
double gradient (void) const
 Return parameter gradient. More...
 
double min (void) const
 Return parameter minimum boundary. More...
 
double max (void) const
 Return parameter maximum boundary. More...
 
void value (const double &value)
 Set parameter value. More...
 
void error (const double &error)
 Set parameter error. More...
 
void gradient (const double &gradient)
 Set parameter gradient. More...
 
void min (const double &min)
 Set minimum parameter boundary. More...
 
void max (const double &max)
 Set maximum parameter boundary. More...
 
void range (const double &min, const double &max)
 Set minimum and maximum parameter boundaries. More...
 
const double & factor_value (void) const
 Return parameter value factor. More...
 
const double & factor_error (void) const
 Return parameter error factor. More...
 
const double & factor_gradient (void) const
 Return parameter gradient factor. More...
 
const double & factor_min (void) const
 Return parameter minimum boundary factor. More...
 
const double & factor_max (void) const
 Return parameter maximum boundary factor. More...
 
const double & scale (void) const
 Return parameter scale. More...
 
void factor_value (const double &value)
 Set parameter value factor. More...
 
void factor_error (const double &error)
 Set parameter error factor. More...
 
void factor_gradient (const double &gradient) const
 Set parameter gradient factor. More...
 
void factor_min (const double &min)
 Set parameter minimum factor. More...
 
void factor_max (const double &max)
 Set parameter maximum factor. More...
 
void factor_range (const double &min, const double &max)
 Set parameter minimum and maximum factors. More...
 
void scale (const double &scale)
 Set scale factor. More...
 
bool has_min (void) const
 Signal if parameter has minimum boundary. More...
 
bool has_max (void) const
 Signal if parameter has maximum boundary. More...
 
bool has_range (void) const
 Signal if parameter has minimum and maximum boundaries. More...
 
void remove_min (void)
 Removes minimum boundary. More...
 
void remove_max (void)
 Removes maximum boundary. More...
 
void remove_range (void)
 Removes minimum and maximum boundary. More...
 
bool is_free (void) const
 Signal if parameter is free. More...
 
bool is_fixed (void) const
 Signal if parameter is fixed. More...
 
bool has_grad (void) const
 Signal if parameter gradient is computed analytically. More...
 
void free (void)
 Free a parameter. More...
 
void fix (void)
 Fix a parameter. More...
 
void has_grad (const bool &grad)
 Set gradient property. More...
 
void clear (void)
 Clear parameter. More...
 
GOptimizerParclone (void) const
 Clone parameter. More...
 
std::string classname (void) const
 Return class name. More...
 
const std::string & name (void) const
 Return parameter name. More...
 
const std::string & unit (void) const
 Return parameter unit. More...
 
void name (const std::string &name)
 Set parameter name. More...
 
void unit (const std::string &unit)
 Set parameter unit. More...
 
void autoscale (void)
 Autoscale parameter. More...
 
std::string print (const GChatter &chatter=NORMAL) const
 Print parameter information. More...
 
- Public Member Functions inherited from GBase
virtual ~GBase (void)
 Destructor. More...
 

Protected Member Functions

void init_members (void)
 Initialise class members. More...
 
void copy_members (const GOptimizerPar &par)
 Copy class members. More...
 
void free_members (void)
 Delete class members. More...
 

Protected Attributes

std::string m_name
 Parameter name. More...
 
std::string m_unit
 Parameter unit. More...
 
double m_factor_value
 Parameter value factor. More...
 
double m_factor_error
 Uncertainty in parameter value factor. More...
 
double m_factor_min
 Parameter minimum factor. More...
 
double m_factor_max
 Parameter maximum factor. More...
 
double m_factor_gradient
 Function gradient factor. More...
 
double m_scale
 Parameter scaling (true = factor * scale) More...
 
bool m_free
 Parameter is free. More...
 
bool m_has_min
 Parameter has minimum boundary. More...
 
bool m_has_max
 Parameter has maximum boundary. More...
 
bool m_has_grad
 Parameter has analytic gradient. More...
 

Detailed Description

Optimizer parameter class.

This class implements a function parameter for the optimizer. A function parameter is a numerical value that is used to describe a function.

A function parameter has the following attributes:

  • value gives the numerical value of the parameter
  • error gives the statistical uncertainty in the parameter value
  • gradient gives the gradient of a function with respect to the parameter
  • min gives the minimum value that the parameter value can take
  • max gives the maximum value that the parameter value can take

The parameter attributes are set and retrieved using the value(), error(), gradient(), min() and max() methods, respectively. Furthermore, the range() method is used to simultaneously set the minimum and maximum value of a parameter.

The minimum and maximum values are optional, and existence of these attributes is tested using the has_min() and has_max() methods, respectively. The minimum value, maximum value are removed using the remove_min() and remove_max() methods. Simultaneous removal of minimum and maximum values is done using the remove_range() method.

Each parameter has furthermore the following properties:

  • free specifies whether the parameter should be fitted
  • grad specifies whether the parameter gradient is computed analytically (true) or numerically (false)

The parameter property free is set using the free() and fix() methods and it is retrieved using the is_free() and is_fixed() methods. The attribute grad is set and retrieved using the has has_grad() methods.

Each function parameter is factorized into a factor and a scale term. The GOptimizerPar class stores the factors and the scale factor has data members, and the true values are computed using the following relations:

value    = m_factor_value    * m_scale
error    = m_factor_error    * m_scale
gradient = m_factor_gradient * m_scale
min      = m_factor_min      * m_scale
max      = m_factor_max      * m_scale

The factor and scale terms can be set and retrieved using the factor_value(), factor_error(), factor_gradient(), factor_min(), factor_max() and scale() methods.

Definition at line 89 of file GOptimizerPar.hpp.

Constructor & Destructor Documentation

GOptimizerPar::GOptimizerPar ( void  )

Void constructor.

Definition at line 59 of file GOptimizerPar.cpp.

References init_members().

Referenced by clone().

GOptimizerPar::GOptimizerPar ( const std::string &  name,
const double &  value 
)

Parameter constructor.

Parameters
[in]nameParameter name.
[in]valueParameter value.

Constructs a parameter from a parameter name and a parameter value.

The parameter is auto-scaled, which for a value that differs from zero sets the scale factor to value and the factor_value to unity. For a value of zero, the scale factor will be set to unity and the factor_value will be set to value.

Definition at line 82 of file GOptimizerPar.cpp.

References init_members(), m_factor_value, m_name, m_scale, name(), and value().

GOptimizerPar::GOptimizerPar ( const std::string &  name,
const double &  factor,
const double &  scale 
)

Parameter constructor.

Parameters
[in]nameParameter name.
[in]factorParameter value factor.
[in]scaleParameter scaling (non-zero value).
Exceptions
GException::invalid_argumentSacle factor of 0 specified.

Constructs a parameter from a parameter name, value factor and scale factor. The scale factor needs to be a non-zero value. If the scale factor is zero, an exception is thrown.

Definition at line 119 of file GOptimizerPar.cpp.

References G_CONSTRUCT, init_members(), m_factor_value, m_name, m_scale, name(), and scale().

GOptimizerPar::GOptimizerPar ( const GOptimizerPar par)

Copy constructor.

Parameters
[in]parFunction parameter.

Definition at line 148 of file GOptimizerPar.cpp.

References copy_members(), and init_members().

GOptimizerPar::~GOptimizerPar ( void  )
virtual

Destructor.

Definition at line 164 of file GOptimizerPar.cpp.

References free_members().

Member Function Documentation

void GOptimizerPar::autoscale ( void  )

Autoscale parameter.

Sets the value factor to unity and the scale factor to the real value of the parameter. The method will also adjust the error factor and gradient factor, as well as the minimum and maximum factors if they exist.

Special care is taken for value boundaries, that need swaping if the scale factor changes its sign. In case of sign change the following logic applies:

  • if minimum and maximum boundaries are set they are swapped
  • if only a minimum boundary exists it will be replaced by a maximum boundary
  • if only a maximum boundary exists it will be replaced by a minimum boundary

The method does nothing if the actual value factor is zero.

Definition at line 573 of file GOptimizerPar.cpp.

References m_factor_error, m_factor_gradient, m_factor_max, m_factor_min, m_factor_value, m_has_max, m_has_min, m_scale, and value().

std::string GOptimizerPar::classname ( void  ) const
inlinevirtual

Return class name.

Returns
String containing the class name ("GOptimizerPar").

Implements GBase.

Definition at line 186 of file GOptimizerPar.hpp.

void GOptimizerPar::clear ( void  )
virtual

Clear parameter.

Resets parameter to a clean initial state.

Implements GBase.

Definition at line 218 of file GOptimizerPar.cpp.

References free_members(), and init_members().

Referenced by GModelSpatialRadialProfileGauss::init_members(), GModelSpatialRadialProfileDMBurkert::init_members(), GCTAModelSpatialGradient::init_members(), GModelSpatialRadialProfileDMEinasto::init_members(), GModelSpatialDiffuseConst::init_members(), GModelTemporalConst::init_members(), GModelSpatialRadialDisk::init_members(), GModelSpatialRadialGauss::init_members(), GModelSpatialRadialProfileDMZhao::init_members(), GCTAModelRadialGauss::init_members(), GModelSpatialPointSource::init_members(), GCTAModelRadialProfile::init_members(), GModelTemporalLightCurve::init_members(), GModelSpectralConst::init_members(), GModelSpatialRadial::init_members(), GModelSpatialDiffuseMap::init_members(), GModelSpatialRadialShell::init_members(), GModelSpectralFunc::init_members(), GCTAModelSpatialLookup::init_members(), GModelSpectralGauss::init_members(), GModelSpatialElliptical::init_members(), GModelSpectralPlaw::init_members(), GModelSpectralExpPlaw::init_members(), GModelSpectralLogParabola::init_members(), GModelSpatialDiffuseCube::init_members(), GModelSpectralBrokenPlaw::init_members(), GModelSpectralExpInvPlaw::init_members(), GModelSpectralSuperExpPlaw::init_members(), GModelSpectralPlawPhotonFlux::init_members(), GModelSpectralPlawEnergyFlux::init_members(), GModelTemporalPhaseCurve::init_members(), and GModelSpectralSmoothBrokenPlaw::init_members().

GOptimizerPar * GOptimizerPar::clone ( void  ) const
virtual

Clone parameter.

Returns
Pointer to deep copy of parameter.

Implements GBase.

Definition at line 236 of file GOptimizerPar.cpp.

References GOptimizerPar().

Referenced by GOptimizerPars::append(), GOptimizerPars::insert(), and GOptimizerPars::set().

void GOptimizerPar::copy_members ( const GOptimizerPar par)
protected

Copy class members.

Parameters
[in]parModel parameter.

Definition at line 726 of file GOptimizerPar.cpp.

References m_factor_error, m_factor_gradient, m_factor_max, m_factor_min, m_factor_value, m_free, m_has_grad, m_has_max, m_has_min, m_name, m_scale, and m_unit.

Referenced by GOptimizerPar(), and operator=().

double GOptimizerPar::error ( void  ) const
inline

Return parameter error.

Returns
Parameter error.

Returns the parameter error. The parameter error is computed by multiplying the error factor by the scale factor. By definition, the error is a positive number, hence the method returns the absolute value of the internally computed error.

Definition at line 218 of file GOptimizerPar.hpp.

References abs(), m_factor_error, and m_scale.

Referenced by factor_error(), and print().

void GOptimizerPar::error ( const double &  error)

Set parameter error.

Parameters
[in]errorParameter error.

Sets the parameter error. The method stores the error factor which is obtained by dividing the error by the scale factor.

Definition at line 273 of file GOptimizerPar.cpp.

References factor_error(), and m_scale.

const double & GOptimizerPar::factor_error ( void  ) const
inline

Return parameter error factor.

Returns
Parameter error factor.

Returns the parameter error factor.

Definition at line 294 of file GOptimizerPar.hpp.

References m_factor_error.

Referenced by error().

void GOptimizerPar::factor_error ( const double &  error)
inline

Set parameter error factor.

Parameters
[in]errorParameter error factor.

Sets the parameter error factor.

Definition at line 364 of file GOptimizerPar.hpp.

References error(), and m_factor_error.

void GOptimizerPar::factor_gradient ( const double &  gradient) const
inline

Set parameter gradient factor.

Parameters
[in]gradientParameter gradient factor.

Sets the parameter gradient factor.

Definition at line 379 of file GOptimizerPar.hpp.

References gradient(), and m_factor_gradient.

const double & GOptimizerPar::factor_max ( void  ) const
inline

Return parameter maximum boundary factor.

Returns
Parameter maximum boundary factor.

Returns the parameter maximum boundary factor.

Definition at line 336 of file GOptimizerPar.hpp.

References m_factor_max.

Referenced by factor_range(), max(), GObservation::model_grad(), and GObservation::npred_grad().

void GOptimizerPar::factor_max ( const double &  max)

Set parameter maximum factor.

Parameters
[in]maxMaximum factor.
Exceptions
GException::invalid_argumentParameter max smaller than value factor.

Sets the maximum boundary factor of the parameter. The method makes sure that the maximum is not smaller than the actual value factor. Otherwise, an exception is thrown.

Definition at line 444 of file GOptimizerPar.cpp.

References G_FACTOR_VALUE, m_factor_max, m_factor_value, m_has_max, max(), and gammalib::str().

const double & GOptimizerPar::factor_min ( void  ) const
inline

Return parameter minimum boundary factor.

Returns
Parameter minimum boundary factor.

Returns the parameter minimum boundary factor.

Definition at line 322 of file GOptimizerPar.hpp.

References m_factor_min.

Referenced by factor_range(), min(), GObservation::model_grad(), and GObservation::npred_grad().

void GOptimizerPar::factor_min ( const double &  min)

Set parameter minimum factor.

Parameters
[in]minMinimum factor.
Exceptions
GException::invalid_argumentParameter min larger than value factor.

Sets the minimum boundary factor of the parameter. The method makes sure that the minimum is not larger than the actual value factor. Otherwise, an exception is thrown.

Definition at line 411 of file GOptimizerPar.cpp.

References G_FACTOR_VALUE, m_factor_min, m_factor_value, m_has_min, min(), and gammalib::str().

void GOptimizerPar::factor_range ( const double &  min,
const double &  max 
)

Set parameter minimum and maximum factors.

Parameters
[in]minMinimum factor.
[in]maxMaximum factor.

Sets the minimum and maximum boundary factors. The method calls the factor_min() and factor_max() methods which perform validity checking of the arguments.

Definition at line 475 of file GOptimizerPar.cpp.

References factor_max(), and factor_min().

void GOptimizerPar::factor_value ( const double &  value)

Set parameter value factor.

Parameters
[in]valueValue factor.
Exceptions
GException::invalid_argumentParameter value outside [min,max] boundaries.

Sets the value factor of the parameter. The method makes sure that none of the boundaries is violated. Otherwise, exceptions are thrown.

Definition at line 371 of file GOptimizerPar.cpp.

References G_FACTOR_VALUE, m_factor_max, m_factor_min, m_factor_value, m_has_max, m_has_min, gammalib::str(), and value().

void GOptimizerPar::free_members ( void  )
protected

Delete class members.

Definition at line 750 of file GOptimizerPar.cpp.

Referenced by clear(), operator=(), and ~GOptimizerPar().

double GOptimizerPar::gradient ( void  ) const
inline

Return parameter gradient.

Returns
Parameter gradient.

Returns the parameter gradient. The parameter gradient is computed by dividing the gradient factor by the scale factor. The method returns zero in case that the scale factor is zero.

Definition at line 234 of file GOptimizerPar.hpp.

References m_factor_gradient, and m_scale.

Referenced by GModelSpatialComposite::append(), GCTAModelSpatialGaussSpectrum::eval(), GCTAModelSpatialMultiplicative::eval(), GModelSpectralMultiplicative::eval(), GModelSpectralExponential::eval(), factor_gradient(), GCTAModelRadialPolynom::GCTAModelRadialPolynom(), GModelSpatialRadialProfileGauss::init_members(), GModelSpatialRadialProfileDMBurkert::init_members(), GModelSpatialRadialProfileDMEinasto::init_members(), GCTAModelSpatialGradient::init_members(), GModelTemporalConst::init_members(), GModelSpatialDiffuseConst::init_members(), GModelSpatialRadialDisk::init_members(), GModelSpatialRadialGauss::init_members(), GModelSpatialRadialProfileDMZhao::init_members(), GCTAModelRadialGauss::init_members(), GModelSpatialPointSource::init_members(), GCTAModelRadialProfile::init_members(), GModelTemporalLightCurve::init_members(), GModelSpectralConst::init_members(), GModelSpatialRadial::init_members(), GModelSpatialDiffuseMap::init_members(), GModelSpatialRadialShell::init_members(), GModelSpectralFunc::init_members(), GCTAModelSpatialLookup::init_members(), GModelSpectralGauss::init_members(), GModelSpatialElliptical::init_members(), GModelSpectralPlaw::init_members(), GModelSpectralExpPlaw::init_members(), GModelSpatialDiffuseCube::init_members(), GModelSpectralLogParabola::init_members(), GModelSpectralBrokenPlaw::init_members(), GModelSpectralExpInvPlaw::init_members(), GModelSpectralSuperExpPlaw::init_members(), GModelSpectralPlawEnergyFlux::init_members(), GModelSpectralPlawPhotonFlux::init_members(), GModelTemporalPhaseCurve::init_members(), and GModelSpectralSmoothBrokenPlaw::init_members().

void GOptimizerPar::gradient ( const double &  gradient)

Set parameter gradient.

Parameters
[in]gradientParameter gradient.

Sets the parameter gradient. The method stores the gradient factor which is obtained by multiplying gradient by the scale factor.

Definition at line 292 of file GOptimizerPar.cpp.

References factor_gradient(), and m_scale.

bool GOptimizerPar::has_grad ( void  ) const
inline

Signal if parameter gradient is computed analytically.

Returns
True if parameter is gradient is computed analytically, false otherwise.

Signals if the parameter gradient is computed analytically. This property is used in the function optimization process to identify parameters for which gradients need to be computed numerically.

Definition at line 510 of file GOptimizerPar.hpp.

References m_has_grad.

Referenced by GModelSpatialComposite::append(), GModelSpectralNodes::append(), GCTAModelRadialPolynom::GCTAModelRadialPolynom(), GModelSpatialRadialProfileGauss::init_members(), GModelSpatialRadialProfileDMBurkert::init_members(), GCTAModelSpatialGradient::init_members(), GModelSpatialRadialProfileDMEinasto::init_members(), GModelTemporalConst::init_members(), GModelSpatialDiffuseConst::init_members(), GModelSpatialRadialDisk::init_members(), GModelSpatialRadialGauss::init_members(), GModelSpatialRadialProfileDMZhao::init_members(), GCTAModelRadialGauss::init_members(), GModelSpatialPointSource::init_members(), GModelTemporalLightCurve::init_members(), GCTAModelRadialProfile::init_members(), GModelSpectralConst::init_members(), GModelSpatialRadial::init_members(), GModelSpatialDiffuseMap::init_members(), GModelSpatialRadialShell::init_members(), GModelSpectralFunc::init_members(), GCTAModelSpatialLookup::init_members(), GModelSpectralGauss::init_members(), GModelSpatialElliptical::init_members(), GModelSpectralPlaw::init_members(), GModelSpectralExpPlaw::init_members(), GModelSpatialDiffuseCube::init_members(), GModelSpectralLogParabola::init_members(), GModelSpectralBrokenPlaw::init_members(), GModelSpectralExpInvPlaw::init_members(), GModelSpectralSuperExpPlaw::init_members(), GModelSpectralPlawPhotonFlux::init_members(), GModelSpectralPlawEnergyFlux::init_members(), GModelTemporalPhaseCurve::init_members(), GModelSpectralSmoothBrokenPlaw::init_members(), GModelSpectralNodes::insert(), GObservation::model(), GCOMModelDRBFitting::read(), GModelSpectralNodes::read(), and GModel::read_scales().

void GOptimizerPar::has_grad ( const bool &  grad)
inline

Set gradient property.

Parameters
[in]gradGradient flag

Sets the gradient property of the parameter. If grad is set to true, the parameter gradient will be computed analytically by the method that evaluates the function. If false, the gradients needs to be computed numerically.

Definition at line 555 of file GOptimizerPar.hpp.

References m_has_grad.

bool GOptimizerPar::has_max ( void  ) const
inline

Signal if parameter has maximum boundary.

Returns
True if parameter has maximum boundary, false otherwise.

Signals if the parameter has a maximum boundary.

Definition at line 408 of file GOptimizerPar.hpp.

References m_has_max.

Referenced by GObservation::model_grad(), GObservation::npred_grad(), and GModelPar::write().

bool GOptimizerPar::has_min ( void  ) const
inline

Signal if parameter has minimum boundary.

Returns
True if parameter has minimum boundary, false otherwise.

Signals if the parameter has a minimum boundary.

Definition at line 394 of file GOptimizerPar.hpp.

References m_has_min.

Referenced by GObservation::model_grad(), GObservation::npred_grad(), GCTAModelRadialGauss::read(), GCTAModelRadialProfile::read(), and GModelPar::write().

bool GOptimizerPar::has_range ( void  ) const
inline

Signal if parameter has minimum and maximum boundaries.

Returns
True if parameter has minimum and maximum boundaries, false otherwise.

Signals if the parameter has a minimum and a maximum boundary.

Definition at line 423 of file GOptimizerPar.hpp.

References m_has_max, and m_has_min.

void GOptimizerPar::init_members ( void  )
protected

Initialise class members.

Definition at line 700 of file GOptimizerPar.cpp.

References m_factor_error, m_factor_gradient, m_factor_max, m_factor_min, m_factor_value, m_free, m_has_grad, m_has_max, m_has_min, m_name, m_scale, and m_unit.

Referenced by clear(), GOptimizerPar(), and operator=().

bool GOptimizerPar::is_fixed ( void  ) const
inline

Signal if parameter is fixed.

Returns
True if parameter is fixed, false otherwise.

Signals if the parameter is fixed, i.e. that it shall NOT be fitted in a parameter optimization process.

Definition at line 493 of file GOptimizerPar.hpp.

References m_free.

Referenced by GObservations::likelihood::hessian().

double GOptimizerPar::max ( void  ) const
inline

Return parameter maximum boundary.

Returns
Parameter maximum boundary.

Returns the parameter maximum boundary. The parameter maximum boundary is computed by multiplying the maximum boundary factor by the scale factor.

Definition at line 266 of file GOptimizerPar.hpp.

References m_factor_max, and m_scale.

Referenced by factor_max(), GModelSpatialRadialProfileDMEinasto::init_members(), GModelSpatialRadialProfileDMZhao::init_members(), GModelSpectralExpInvPlaw::init_members(), print(), range(), GModelSpatialComposite::read(), GModelSpectralLogParabola::read(), and GModelSpectralLogParabola::write().

void GOptimizerPar::max ( const double &  max)

Set maximum parameter boundary.

Parameters
[in]maxParameter maximum.

Sets the maximum parameter boundary. The method stores the maximum boundary factor which is obtained by dividing max by the scale factor.

Definition at line 329 of file GOptimizerPar.cpp.

References factor_max(), and m_scale.

void GOptimizerPar::min ( const double &  min)

Set minimum parameter boundary.

Parameters
[in]minParameter minimum.

Sets the minimum parameter boundary. The method stores the minimum boundary factor which is obtained by dividing min by the scale factor.

Definition at line 310 of file GOptimizerPar.cpp.

References factor_min(), and m_scale.

const std::string & GOptimizerPar::name ( void  ) const
inline

Return parameter name.

Returns
Parameter name.

Returns the parameter name.

Definition at line 570 of file GOptimizerPar.hpp.

References m_name.

Referenced by GCTAModelSpatialMultiplicative::append(), GModelSpatialComposite::append(), GModelSpectralComposite::append(), GModelSpectralMultiplicative::append(), GModelSpectralNodes::append(), GResponse::eval_prob(), GCTAModelRadialPolynom::GCTAModelRadialPolynom(), GModelSpectralBrokenPlaw::GModelSpectralBrokenPlaw(), GModelSpectralConst::GModelSpectralConst(), GModelSpectralExpInvPlaw::GModelSpectralExpInvPlaw(), GModelSpectralExpPlaw::GModelSpectralExpPlaw(), GModelSpectralLogParabola::GModelSpectralLogParabola(), GModelSpectralPlaw::GModelSpectralPlaw(), GModelSpectralPlawEnergyFlux::GModelSpectralPlawEnergyFlux(), GModelSpectralPlawPhotonFlux::GModelSpectralPlawPhotonFlux(), GModelSpectralSmoothBrokenPlaw::GModelSpectralSmoothBrokenPlaw(), GModelSpectralSuperExpPlaw::GModelSpectralSuperExpPlaw(), GOptimizerPar(), GModelSpatialRadialProfileGauss::init_members(), GModelSpatialRadialProfileDMBurkert::init_members(), GCTAModelSpatialGradient::init_members(), GModelSpatialRadialProfileDMEinasto::init_members(), GModelSpatialDiffuseConst::init_members(), GModelTemporalConst::init_members(), GModelSpatialRadialDisk::init_members(), GModelSpatialRadialGauss::init_members(), GModelSpatialRadialProfileDMZhao::init_members(), GCTAModelRadialGauss::init_members(), GModelSpatialPointSource::init_members(), GModelTemporalLightCurve::init_members(), GCTAModelRadialProfile::init_members(), GModelSpectralConst::init_members(), GModelSpatialRadial::init_members(), GModelSpatialDiffuseMap::init_members(), GModelSpectralFunc::init_members(), GModelSpatialRadialShell::init_members(), GCTAModelSpatialLookup::init_members(), GModelSpectralGauss::init_members(), GModelSpatialElliptical::init_members(), GModelSpectralPlaw::init_members(), GModelSpectralExpPlaw::init_members(), GModelSpectralLogParabola::init_members(), GModelSpatialDiffuseCube::init_members(), GModelSpectralBrokenPlaw::init_members(), GModelSpectralExpInvPlaw::init_members(), GModelSpectralSuperExpPlaw::init_members(), GModelSpectralPlawEnergyFlux::init_members(), GModelSpectralPlawPhotonFlux::init_members(), GModelTemporalPhaseCurve::init_members(), GModelSpectralSmoothBrokenPlaw::init_members(), GModelSpectralNodes::insert(), GCTAOnOffObservation::N_gamma(), name(), print(), GModelSpatialRadialProfileGauss::read(), GCTAModelSpatialGradient::read(), GCOMModelDRBFitting::read(), GModelSpatialDiffuseConst::read(), GModelTemporalConst::read(), GModelSpatialRadialDisk::read(), GModelSpatialRadialGauss::read(), GModelSpatialPointSource::read(), GModelSpatialEllipticalDisk::read(), GCTAModelRadialPolynom::read(), GModelSpatialEllipticalGauss::read(), GModelTemporalLightCurve::read(), GCTAModelSpatialLookup::read(), GModelSpatialRadial::read(), GModelSpectralConst::read(), GModelSpatialElliptical::read(), GModelSpatialRadialShell::read(), GModelSpectralGauss::read(), GModelSpectralPlaw::read(), GModelSpectralExpPlaw::read(), GModelSpectralLogParabola::read(), GModelSpectralBrokenPlaw::read(), GModelSpectralExpInvPlaw::read(), GModelSpectralSuperExpPlaw::read(), GModelTemporalPhaseCurve::read(), GModelSpectralPlawEnergyFlux::read(), GModelSpectralPlawPhotonFlux::read(), GModelSpectralNodes::read(), GModelSpectralSmoothBrokenPlaw::read(), GModel::read_scales(), GModel::scale(), GModelSpatialRadialProfileGauss::write(), GCTAModelSpatialGradient::write(), GCOMModelDRBFitting::write(), GCTAModelSpatialMultiplicative::write(), GModelSpatialComposite::write(), GModelSpatialDiffuseConst::write(), GModelTemporalConst::write(), GModelSpatialRadialDisk::write(), GModelSpatialRadialGauss::write(), GModelSpatialPointSource::write(), GModelSpectralComposite::write(), GModelSpatialEllipticalDisk::write(), GModelSpectralMultiplicative::write(), GModelSpatialEllipticalGauss::write(), GModelTemporalLightCurve::write(), GCTAModelSpatialLookup::write(), GModelSpectralConst::write(), GModelSpatialRadial::write(), GModelSpatialElliptical::write(), GModelSpatialRadialShell::write(), GModelSpectralGauss::write(), GModelSpectralPlaw::write(), GModelSpectralExpPlaw::write(), GModelSpectralLogParabola::write(), GModelSpectralBrokenPlaw::write(), GModelSpectralExpInvPlaw::write(), GModelSpectralSuperExpPlaw::write(), GModelTemporalPhaseCurve::write(), GModelSpectralPlawPhotonFlux::write(), GModelSpectralPlawEnergyFlux::write(), GModelSpectralNodes::write(), and GModelSpectralSmoothBrokenPlaw::write().

void GOptimizerPar::name ( const std::string &  name)
inline

Set parameter name.

Parameters
[in]nameParameter name.

Sets the parameter name.

Definition at line 598 of file GOptimizerPar.hpp.

References m_name, and name().

GOptimizerPar & GOptimizerPar::operator= ( const GOptimizerPar par)

Assignment operator.

Parameters
[in]parFunction parameter.
Returns
Function parameter.

Definition at line 186 of file GOptimizerPar.cpp.

References copy_members(), free_members(), and init_members().

Referenced by GModelPar::operator=().

std::string GOptimizerPar::print ( const GChatter chatter = NORMAL) const
virtual

Print parameter information.

Parameters
[in]chatterChattiness (defaults to NORMAL).
Returns
String with parameter information.

Implements GBase.

Definition at line 632 of file GOptimizerPar.cpp.

References error(), m_free, m_has_grad, m_has_max, m_has_min, m_scale, m_unit, max(), min(), name(), gammalib::parformat(), SILENT, gammalib::str(), and value().

void GOptimizerPar::remove_max ( void  )
inline

Removes maximum boundary.

Removes maximum boundary from the parameter.

Definition at line 448 of file GOptimizerPar.hpp.

References m_has_max.

Referenced by GModelSpatialComposite::read(), and GModelPar::read().

void GOptimizerPar::remove_min ( void  )
inline

Removes minimum boundary.

Removes minimum boundary from the parameter.

Definition at line 435 of file GOptimizerPar.hpp.

References m_has_min.

Referenced by GModelSpatialComposite::read(), and GModelPar::read().

void GOptimizerPar::remove_range ( void  )
inline

Removes minimum and maximum boundary.

Removes minimum and maximum boundary from the parameter.

Definition at line 461 of file GOptimizerPar.hpp.

References m_has_max, and m_has_min.

const double & GOptimizerPar::scale ( void  ) const
inline

Return parameter scale.

Returns
Parameter scale factor.

Returns the parameter scale factor.

Definition at line 350 of file GOptimizerPar.hpp.

References m_scale.

Referenced by GModelSpatialComposite::append(), GModelSpatialDiffuseConst::eval(), GCTAModelSpatialGradient::eval(), GModelTemporalConst::eval(), GModelSpatialDiffuseMap::eval(), GCTAModelRadialGauss::eval(), GModelSpectralConst::eval(), GModelSpectralFunc::eval(), GCTAModelSpatialLookup::eval(), GModelSpectralGauss::eval(), GModelTemporalLightCurve::eval(), GModelSpatialDiffuseCube::eval(), GModelSpectralPlaw::eval(), GModelSpectralExpPlaw::eval(), GModelSpectralLogParabola::eval(), GModelSpectralBrokenPlaw::eval(), GModelSpectralExpInvPlaw::eval(), GModelSpectralSuperExpPlaw::eval(), GModelSpectralPlawEnergyFlux::eval(), GModelSpectralPlawPhotonFlux::eval(), GModelTemporalPhaseCurve::eval(), GModelSpectralSmoothBrokenPlaw::eval(), GResponse::eval_prob(), GCTAModelRadialPolynom::GCTAModelRadialPolynom(), GOptimizerPar(), GModelSpatialRadialProfileGauss::init_members(), GModelSpatialRadialProfileDMBurkert::init_members(), GModelSpatialRadialProfileDMEinasto::init_members(), GCTAModelSpatialGradient::init_members(), GModelSpatialDiffuseConst::init_members(), GModelSpatialRadialDisk::init_members(), GModelSpatialRadialGauss::init_members(), GModelSpatialRadialProfileDMZhao::init_members(), GCTAModelRadialGauss::init_members(), GModelSpatialPointSource::init_members(), GCTAModelRadialProfile::init_members(), GModelTemporalLightCurve::init_members(), GModelSpectralConst::init_members(), GModelSpatialRadial::init_members(), GModelSpatialDiffuseMap::init_members(), GModelSpatialRadialShell::init_members(), GModelSpectralFunc::init_members(), GCTAModelSpatialLookup::init_members(), GModelSpectralGauss::init_members(), GModelSpatialElliptical::init_members(), GModelSpectralPlaw::init_members(), GModelSpectralExpPlaw::init_members(), GModelSpectralLogParabola::init_members(), GModelSpatialDiffuseCube::init_members(), GModelSpectralBrokenPlaw::init_members(), GModelSpectralExpInvPlaw::init_members(), GModelSpectralSuperExpPlaw::init_members(), GModelSpectralPlawPhotonFlux::init_members(), GModelSpectralPlawEnergyFlux::init_members(), GModelTemporalPhaseCurve::init_members(), GModelSpectralSmoothBrokenPlaw::init_members(), GCTAOnOffObservation::N_gamma(), and scale().

void GOptimizerPar::scale ( const double &  scale)

Set scale factor.

Parameters
[in]scaleScale factor.
Exceptions
GException::invalid_argumentSacle factor of 0 specified.

Sets the scale factor of the parameter. All parameter attributes are rescaled accordingly.

Special care is taken for value boundaries, that need swaping if the scale factor changes its sign. In case of sign change the following logic applies:

  • if minimum and maximum boundaries are set they are swapped
  • if only a minimum boundary exists it will be replaced by a maximum boundary
  • if only a maximum boundary exists it will be replaced by a minimum boundary

An exception is thrown if a scale factor of 0 is specified.

Definition at line 505 of file GOptimizerPar.cpp.

References G_SCALE, m_factor_error, m_factor_gradient, m_factor_max, m_factor_min, m_factor_value, m_has_max, m_has_min, m_scale, and scale().

const std::string & GOptimizerPar::unit ( void  ) const
inline
void GOptimizerPar::unit ( const std::string &  unit)
inline

Set parameter unit.

Parameters
[in]unitParameter unit.

Sets the parameter unit.

Definition at line 613 of file GOptimizerPar.hpp.

References m_unit, and unit().

double GOptimizerPar::value ( void  ) const
inline

Return parameter value.

Returns
Parameter value.

Returns the parameter value. The parameter value is computed by multiplying the value factor by the scale factor.

Definition at line 201 of file GOptimizerPar.hpp.

References m_factor_value, and m_scale.

Referenced by GModelSpatialRadialProfileDMEinasto::alpha(), GModelSpatialRadialProfileDMZhao::alpha(), GModelSpectralNodes::append(), autoscale(), GModelSpatialRadialProfileDMZhao::beta(), GModelSpectralSmoothBrokenPlaw::beta(), GModelSpectralBrokenPlaw::breakenergy(), GModelSpectralSmoothBrokenPlaw::breakenergy(), GCTAModelRadialProfile::core(), GModelSpectralLogParabola::curvature(), GModelSpectralExpPlaw::cutoff(), GModelSpectralExpInvPlaw::cutoff(), GModelSpectralSuperExpPlaw::cutoff(), GModelSpatialPointSource::dec(), GModelSpatialRadial::dec(), GModelSpatialElliptical::dec(), GCTAModelSpatialGradient::detx_gradient(), GCTAModelSpatialGradient::dety_gradient(), GModelSpatialPointSource::dir(), GModelSpatialRadial::dir(), GModelSpatialElliptical::dir(), GModelSpectralConst::eflux(), GModelSpectralGauss::eflux(), GModelSpectralPlaw::eflux(), GModelSpectralExpPlaw::eflux(), GModelSpectralBrokenPlaw::eflux(), GModelSpectralExpInvPlaw::eflux(), GModelSpectralSuperExpPlaw::eflux(), GModelSpectralPlawPhotonFlux::eflux(), GModelSpectralPlawEnergyFlux::eflux(), GModelSpectralPlawEnergyFlux::emax(), GModelSpectralPlawPhotonFlux::emax(), GModelSpectralPlawEnergyFlux::emin(), GModelSpectralPlawPhotonFlux::emin(), GModelSpatialDiffuseConst::eval(), GCTAModelSpatialGradient::eval(), GModelSpatialEllipticalDisk::eval(), GModelTemporalConst::eval(), GModelSpatialDiffuseMap::eval(), GModelSpectralConst::eval(), GModelSpectralFunc::eval(), GCTAModelSpatialLookup::eval(), GModelSpectralGauss::eval(), GModelTemporalLightCurve::eval(), GModelSpatialDiffuseCube::eval(), GModelSpectralPlaw::eval(), GModelSpectralExpPlaw::eval(), GModelSpectralLogParabola::eval(), GModelSpectralBrokenPlaw::eval(), GModelSpectralExpInvPlaw::eval(), GModelSpectralSuperExpPlaw::eval(), GModelSpectralPlawEnergyFlux::eval(), GModelSpectralPlawPhotonFlux::eval(), GModelTemporalPhaseCurve::eval(), GModelSpectralSmoothBrokenPlaw::eval(), GModelTemporalPhaseCurve::f0(), GModelTemporalPhaseCurve::f1(), GModelTemporalPhaseCurve::f2(), factor_value(), GModelSpectralConst::flux(), GModelSpectralFunc::flux(), GModelSpectralGauss::flux(), GModelSpectralPlaw::flux(), GModelSpectralExpPlaw::flux(), GModelSpectralBrokenPlaw::flux(), GModelSpectralExpInvPlaw::flux(), GModelSpectralSuperExpPlaw::flux(), GModelSpectralPlawEnergyFlux::flux(), GModelSpectralPlawPhotonFlux::flux(), GModelSpatialRadialProfileDMZhao::gamma(), GCTAModelRadialPolynom::GCTAModelRadialPolynom(), GModelSpatialDiffuseConst::GModelSpatialDiffuseConst(), GModelSpatialDiffuseCube::GModelSpatialDiffuseCube(), GModelSpatialDiffuseMap::GModelSpatialDiffuseMap(), GModelSpatialPointSource::GModelSpatialPointSource(), GModelSpectralBrokenPlaw::GModelSpectralBrokenPlaw(), GModelSpectralConst::GModelSpectralConst(), GModelSpectralExpInvPlaw::GModelSpectralExpInvPlaw(), GModelSpectralExpPlaw::GModelSpectralExpPlaw(), GModelSpectralFunc::GModelSpectralFunc(), GModelSpectralGauss::GModelSpectralGauss(), GModelSpectralLogParabola::GModelSpectralLogParabola(), GModelSpectralPlaw::GModelSpectralPlaw(), GModelSpectralPlawEnergyFlux::GModelSpectralPlawEnergyFlux(), GModelSpectralPlawPhotonFlux::GModelSpectralPlawPhotonFlux(), GModelSpectralSmoothBrokenPlaw::GModelSpectralSmoothBrokenPlaw(), GModelSpectralSuperExpPlaw::GModelSpectralSuperExpPlaw(), GModelTemporalConst::GModelTemporalConst(), GModelTemporalLightCurve::GModelTemporalLightCurve(), GOptimizerPar(), GModelSpatialRadialProfileDMBurkert::halo_distance(), GModelSpatialRadialProfileDMEinasto::halo_distance(), GModelSpatialRadialProfileDMZhao::halo_distance(), GModelSpectralPlaw::index(), GModelSpectralExpPlaw::index(), GModelSpectralLogParabola::index(), GModelSpectralExpInvPlaw::index(), GModelSpectralPlawEnergyFlux::index(), GModelSpectralPlawPhotonFlux::index(), GModelSpectralBrokenPlaw::index1(), GModelSpectralSuperExpPlaw::index1(), GModelSpectralSmoothBrokenPlaw::index1(), GModelSpectralBrokenPlaw::index2(), GModelSpectralSuperExpPlaw::index2(), GModelSpectralSmoothBrokenPlaw::index2(), GModelSpatialRadialProfileGauss::init_members(), GModelSpatialRadialProfileDMBurkert::init_members(), GModelSpatialRadialProfileDMEinasto::init_members(), GCTAModelSpatialGradient::init_members(), GModelSpatialDiffuseConst::init_members(), GModelTemporalConst::init_members(), GModelSpatialRadialDisk::init_members(), GModelSpatialRadialGauss::init_members(), GModelSpatialRadialProfileDMZhao::init_members(), GCTAModelRadialGauss::init_members(), GCTAModelRadialProfile::init_members(), GModelTemporalLightCurve::init_members(), GModelSpectralConst::init_members(), GModelSpatialDiffuseMap::init_members(), GModelSpatialRadialShell::init_members(), GModelSpectralFunc::init_members(), GCTAModelSpatialLookup::init_members(), GModelSpectralGauss::init_members(), GModelSpatialElliptical::init_members(), GModelSpectralPlaw::init_members(), GModelSpectralExpPlaw::init_members(), GModelSpectralLogParabola::init_members(), GModelSpatialDiffuseCube::init_members(), GModelSpectralBrokenPlaw::init_members(), GModelSpectralExpInvPlaw::init_members(), GModelSpectralSuperExpPlaw::init_members(), GModelSpectralPlawPhotonFlux::init_members(), GModelSpectralPlawEnergyFlux::init_members(), GModelTemporalPhaseCurve::init_members(), GModelSpectralSmoothBrokenPlaw::init_members(), GModelSpectralNodes::insert(), GModelSpectralExpInvPlaw::inverse_cutoff(), GModelSpatialRadialProfileDMBurkert::mass_density(), GModelSpatialRadialProfileDMEinasto::mass_density(), GModelSpatialRadialProfileDMZhao::mass_density(), GModelSpectralGauss::mc(), GModelSpectralExpPlaw::mc(), GModelSpectralLogParabola::mc(), GModelSpectralExpInvPlaw::mc(), GModelSpectralSuperExpPlaw::mc(), GCTAModelSpatialGradient::mc_max_value(), GModelTemporalLightCurve::mc_update(), GModelSpectralGauss::mean(), GModelTemporalPhaseCurve::mjd(), GCTAOnOffObservation::N_gamma(), GModelTemporalConst::norm(), GModelTemporalLightCurve::norm(), GModelSpectralFunc::norm(), GModelSpectralGauss::norm(), GCTAModelSpatialLookup::norm(), GModelTemporalPhaseCurve::norm(), GModelTemporalPhaseCurve::phase(), GModelSpectralPlaw::pivot(), GModelSpectralExpPlaw::pivot(), GModelSpectralLogParabola::pivot(), GModelSpectralExpInvPlaw::pivot(), GModelSpectralSuperExpPlaw::pivot(), GModelSpectralSmoothBrokenPlaw::pivot(), GModelSpatialElliptical::posangle(), GModelSpectralPlaw::prefactor(), GModelSpectralExpPlaw::prefactor(), GModelSpectralLogParabola::prefactor(), GModelSpectralBrokenPlaw::prefactor(), GModelSpectralExpInvPlaw::prefactor(), GModelSpectralSuperExpPlaw::prefactor(), GModelSpectralSmoothBrokenPlaw::prefactor(), print(), GModelSpatialRadialProfileGauss::profile_value(), GModelSpatialRadialProfileDMBurkert::profile_value(), GModelSpatialRadialProfileDMEinasto::profile_value(), GModelSpatialRadialProfileDMZhao::profile_value(), GModelSpatialPointSource::ra(), GModelSpatialRadial::ra(), GModelSpatialElliptical::ra(), GModelSpatialRadialDisk::radius(), GModelSpatialRadialShell::radius(), GModelSpatialComposite::read(), GModelSpatialPointSource::read(), GCTAModelRadialGauss::read(), GCTAModelRadialProfile::read(), GModelSpatialRadial::read(), GModelSpatialElliptical::read(), GModelSpectralLogParabola::read(), GModelSpectralNodes::read(), GModel::scale(), GModelSpatialRadialProfileDMBurkert::scale_density(), GModelSpatialRadialProfileDMEinasto::scale_density(), GModelSpatialRadialProfileDMZhao::scale_density(), GModelSpatialRadialProfileDMBurkert::scale_radius(), GModelSpatialRadialProfileDMZhao::scale_radius(), GModelSpatialRadialProfileDMEinasto::scale_radius(), GModelSpatialElliptical::semimajor(), GModelSpatialElliptical::semiminor(), GModelSpatialRadialGauss::set_region(), GModelSpatialEllipticalDisk::set_region(), GModelSpatialRadialDisk::set_region(), GModelSpatialRadialProfile::set_region(), GModelSpatialEllipticalGauss::set_region(), GModelSpatialPointSource::set_region(), GModelSpatialRadialShell::set_region(), GModelSpatialRadialProfileGauss::sigma(), GModelSpatialRadialGauss::sigma(), GCTAModelRadialGauss::sigma(), GModelSpectralGauss::sigma(), GCTAModelRadialProfile::tail(), GModelSpatialRadialProfileGauss::theta_max(), GModelSpatialRadialProfileDMEinasto::theta_max(), GModelSpatialRadialProfileDMBurkert::theta_max(), GModelSpatialRadialProfileDMZhao::theta_max(), GModelSpatialRadialProfileDMZhao::theta_min(), GModelSpatialRadialProfileDMBurkert::theta_min(), GModelSpatialRadialProfileDMEinasto::theta_min(), GModelSpectralPlaw::update_eval_cache(), GModelSpectralExpPlaw::update_eval_cache(), GModelSpectralLogParabola::update_eval_cache(), GModelSpectralBrokenPlaw::update_eval_cache(), GModelSpectralExpInvPlaw::update_eval_cache(), GModelSpectralSuperExpPlaw::update_eval_cache(), GModelSpectralSmoothBrokenPlaw::update_eval_cache(), GModelSpectralLogParabola::update_mc_cache(), GModelSpectralBrokenPlaw::update_mc_cache(), GModelSpatialDiffuseConst::value(), GModelSpatialDiffuseMap::value(), GModelSpectralConst::value(), GModelSpatialDiffuseCube::value(), GModelTemporalPhaseCurve::value(), GCTAModelRadialProfile::width(), GModelSpatialRadialShell::width(), and GModelSpectralLogParabola::write().

void GOptimizerPar::value ( const double &  value)

Set parameter value.

Parameters
[in]valueParameter value.

Sets the parameter value. The method stores the value factor which is obtained by dividing the value by the scale factor.

The method calls factor_value() for assigning the value factor, and this method will verify that the value lies within the specified boundaries.

Definition at line 254 of file GOptimizerPar.cpp.

References factor_value(), and m_scale.

Member Data Documentation

double GOptimizerPar::m_factor_error
protected

Uncertainty in parameter value factor.

Definition at line 168 of file GOptimizerPar.hpp.

Referenced by autoscale(), copy_members(), error(), factor_error(), init_members(), GModelPar::read(), scale(), and GModelPar::write().

double GOptimizerPar::m_factor_gradient
mutableprotected

Function gradient factor.

Definition at line 171 of file GOptimizerPar.hpp.

Referenced by autoscale(), copy_members(), factor_gradient(), gradient(), init_members(), and scale().

double GOptimizerPar::m_factor_max
protected

Parameter maximum factor.

Definition at line 170 of file GOptimizerPar.hpp.

Referenced by autoscale(), copy_members(), factor_max(), factor_value(), init_members(), max(), GModelPar::read(), scale(), and GModelPar::write().

double GOptimizerPar::m_factor_min
protected

Parameter minimum factor.

Definition at line 169 of file GOptimizerPar.hpp.

Referenced by autoscale(), copy_members(), factor_min(), factor_value(), init_members(), min(), GModelPar::read(), scale(), and GModelPar::write().

double GOptimizerPar::m_factor_value
protected
bool GOptimizerPar::m_free
protected

Parameter is free.

Definition at line 173 of file GOptimizerPar.hpp.

Referenced by copy_members(), fix(), free(), init_members(), is_fixed(), is_free(), and print().

bool GOptimizerPar::m_has_grad
protected

Parameter has analytic gradient.

Definition at line 176 of file GOptimizerPar.hpp.

Referenced by copy_members(), has_grad(), init_members(), and print().

bool GOptimizerPar::m_has_max
protected
bool GOptimizerPar::m_has_min
protected
std::string GOptimizerPar::m_name
protected

Parameter name.

Definition at line 165 of file GOptimizerPar.hpp.

Referenced by copy_members(), GOptimizerPar(), init_members(), name(), GModelPar::read(), and GModelPar::write().

double GOptimizerPar::m_scale
protected

Parameter scaling (true = factor * scale)

Definition at line 172 of file GOptimizerPar.hpp.

Referenced by autoscale(), copy_members(), error(), GOptimizerPar(), gradient(), init_members(), max(), min(), print(), GModelPar::read(), scale(), value(), and GModelPar::write().

std::string GOptimizerPar::m_unit
protected

Parameter unit.

Definition at line 166 of file GOptimizerPar.hpp.

Referenced by copy_members(), init_members(), print(), and unit().


The documentation for this class was generated from the following files: