Class, describing value, limits and step size of the parameters Provides functionality also to set/retrieve values, step sizes, limits and fix the parameters.
To be done: add constraints (equality and inequality) as functions of the parameters
Definition at line 33 of file ParameterSettings.h.
Public Member Functions | |
ParameterSettings () | |
Default constructor. | |
ParameterSettings (const std::string &name, double val) | |
constructor for fixed Parameter | |
ParameterSettings (const std::string &name, double val, double err) | |
constructor for unlimited named Parameter | |
ParameterSettings (const std::string &name, double val, double err, double min, double max) | |
constructor for double limited Parameter. The given value should be within the given limits [min,max] | |
~ParameterSettings () | |
Destructor (no operations) | |
void | Fix () |
fix the parameter | |
bool | HasLowerLimit () const |
check if parameter has lower limit | |
bool | HasUpperLimit () const |
check if parameter has upper limit | |
bool | IsBound () const |
check if is bound | |
bool | IsDoubleBound () const |
check if is double bound (upper AND lower limit) | |
bool | IsFixed () const |
check if is fixed | |
double | LowerLimit () const |
return lower limit value | |
const std::string & | Name () const |
return name | |
void | Release () |
release the parameter | |
void | RemoveLimits () |
remove all limit | |
void | Set (const std::string &name, double value) |
set a fixed parameter | |
void | Set (const std::string &name, double value, double step) |
set value and name (unlimited parameter) | |
void | Set (const std::string &name, double value, double step, double lower, double upper) |
set a limited parameter. The given value should be within the given limits [min,max] | |
void | SetLimits (double low, double up) |
set a double side limit, if low == up the parameter is fixed if low > up the limits are removed The current parameter value should be within the given limits [low,up]. | |
void | SetLowerLimit (double low) |
set a single lower limit | |
void | SetName (const std::string &name) |
interaction | |
void | SetStepSize (double err) |
set the step size | |
void | SetUpperLimit (double up) |
set a single upper limit | |
void | SetValue (double val) |
set the value | |
double | StepSize () const |
return step size | |
double | UpperLimit () const |
return upper limit value | |
double | Value () const |
copy constructor and assignment operators (leave them to the compiler) | |
Private Attributes | |
bool | fFix |
flag to control if parameter is fixed | |
bool | fHasLowerLimit |
flag to control lower parameter limit | |
bool | fHasUpperLimit |
flag to control upper parameter limit | |
double | fLowerLimit |
lower parameter limit | |
std::string | fName |
parameter name | |
double | fStepSize |
parameter step size (used by minimizer) | |
double | fUpperLimit |
upper parameter limit | |
double | fValue |
parameter value | |
#include <Fit/ParameterSettings.h>
|
inline |
Default constructor.
Definition at line 40 of file ParameterSettings.h.
|
inline |
constructor for unlimited named Parameter
Definition at line 48 of file ParameterSettings.h.
|
inline |
constructor for double limited Parameter. The given value should be within the given limits [min,max]
Definition at line 55 of file ParameterSettings.h.
|
inline |
constructor for fixed Parameter
Definition at line 65 of file ParameterSettings.h.
|
inline |
Destructor (no operations)
Definition at line 100 of file ParameterSettings.h.
|
inline |
fix the parameter
Definition at line 133 of file ParameterSettings.h.
|
inline |
check if parameter has lower limit
Definition at line 117 of file ParameterSettings.h.
|
inline |
check if parameter has upper limit
Definition at line 119 of file ParameterSettings.h.
|
inline |
check if is bound
Definition at line 121 of file ParameterSettings.h.
|
inline |
check if is double bound (upper AND lower limit)
Definition at line 123 of file ParameterSettings.h.
|
inline |
check if is fixed
Definition at line 115 of file ParameterSettings.h.
|
inline |
return lower limit value
Definition at line 111 of file ParameterSettings.h.
|
inline |
return name
Definition at line 125 of file ParameterSettings.h.
|
inline |
release the parameter
Definition at line 135 of file ParameterSettings.h.
|
inline |
remove all limit
Definition at line 157 of file ParameterSettings.h.
|
inline |
set a fixed parameter
Definition at line 90 of file ParameterSettings.h.
|
inline |
set value and name (unlimited parameter)
Definition at line 75 of file ParameterSettings.h.
|
inline |
set a limited parameter. The given value should be within the given limits [min,max]
Definition at line 82 of file ParameterSettings.h.
set a double side limit, if low == up the parameter is fixed if low > up the limits are removed The current parameter value should be within the given limits [low,up].
If the value is outside the limits, then a new parameter value is set to = (up+low)/2
Definition at line 25 of file ParameterSettings.cxx.
|
inline |
set a single lower limit
Definition at line 149 of file ParameterSettings.h.
|
inline |
|
inline |
set the step size
Definition at line 139 of file ParameterSettings.h.
|
inline |
set a single upper limit
Definition at line 142 of file ParameterSettings.h.
|
inline |
set the value
Definition at line 137 of file ParameterSettings.h.
|
inline |
return step size
Definition at line 109 of file ParameterSettings.h.
|
inline |
return upper limit value
Definition at line 113 of file ParameterSettings.h.
|
inline |
copy constructor and assignment operators (leave them to the compiler)
return parameter value
Definition at line 107 of file ParameterSettings.h.
|
private |
flag to control if parameter is fixed
Definition at line 173 of file ParameterSettings.h.
|
private |
flag to control lower parameter limit
Definition at line 176 of file ParameterSettings.h.
|
private |
flag to control upper parameter limit
Definition at line 177 of file ParameterSettings.h.
|
private |
lower parameter limit
Definition at line 174 of file ParameterSettings.h.
|
private |
parameter name
Definition at line 179 of file ParameterSettings.h.
|
private |
parameter step size (used by minimizer)
Definition at line 172 of file ParameterSettings.h.
|
private |
upper parameter limit
Definition at line 175 of file ParameterSettings.h.
|
private |
parameter value
Definition at line 171 of file ParameterSettings.h.