|
ROOT
Reference Guide |
|
Go to the documentation of this file.
13 #ifndef ROOT_Fit_ParameterSettings
14 #define ROOT_Fit_ParameterSettings
59 double min,
double max) :
78 void Set(
const std::string &
name,
double value,
double step) {
85 void Set(
const std::string &
name,
double value,
double step,
double lower,
double upper ) {
93 void Set(
const std::string &
name,
double value) {
153 if (low == up && low ==
fValue) {
158 MATH_INFO_MSG(
"ParameterSettings",
"lower/upper bounds outside current parameter value. The value will be set to (low+up)/2 ");
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
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,...
void SetLowerLimit(double low)
set a single lower limit
bool IsFixed() const
check if is fixed
double Value() const
copy constructor and assignment operators (leave them to the compiler)
bool HasUpperLimit() const
check if parameter has upper limit
void SetName(const std::string &name)
interaction
ParameterSettings(const std::string &name, double val, double err)
constructor for unlimited named Parameter
void Release()
release the parameter
void Fix()
fix the parameter
ParameterSettings()
Default constructor.
double StepSize() const
return step size
bool HasLowerLimit() const
check if parameter has lower limit
const std::string & Name() const
return name
void SetStepSize(double err)
set the step size
double UpperLimit() const
return upper limit value
void SetValue(double val)
set the value
void RemoveLimits()
remove all limit
void SetUpperLimit(double up)
set a single upper limit
ParameterSettings(const std::string &name, double val)
constructor for fixed Parameter
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 c...
void Set(const std::string &name, double value, double step)
set value and name (unlimited parameter)
bool IsBound() const
check if is bound
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]
#define MATH_INFO_MSG(loc, str)
Pre-processor macro to report messages which can be configured to use ROOT error or simply an std::io...
Class, describing value, limits and step size of the parameters Provides functionality also to set/re...
double LowerLimit() const
return lower limit value
void Set(const std::string &name, double value)
set a fixed parameter
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
~ParameterSettings()
Destructor (no operations)
bool IsDoubleBound() const
check if is double bound (upper AND lower limit)