BCParameter.cxx
47 BCParameter::BCParameter(const std::string& name, double lowerlimit, double upperlimit, const std::string& latexname, const std::string& unitstring) :
155 return BCVariable::OneLineSummary(print_prefix, name_length) + Form(" (fixed at %.*f)", GetPrecision(), GetFixedValue());
virtual double GetRandomValueAccordingToPrior(TRandom *const rng) const
Definition: BCParameter.cxx:125
virtual std::string OneLineSummary(bool print_prefix=true, int name_length=-1) const
Definition: BCVariable.cxx:98
virtual bool Fix(double value)
Fix parameter to value (set prior to delta).
Definition: BCParameter.h:141
virtual void SetFunctionRange(double xmin, double xmax)
Set range of ROOT TF1 function.
Definition: BCPrior.cxx:133
virtual TF1 & GetFunction()
Return back ROOT TF1 evaluating BCPrior::GetPrior.
Definition: BCPrior.h:118
Definition: libBAT_rdict.cxx:16
A class to represent a constant prior of a parameter.
Definition: BCConstantPrior.h:33
BCAux::BCRange RangeType(double xmin, double xmax)
Return type of range as a BCAux::BCRange enum.
Definition: BCAux.cxx:85
virtual double GetPriorVariance() const
Definition: BCParameter.cxx:117
virtual double GetMode(double xmin=-std::numeric_limits< double >::infinity(), double xmax=std::numeric_limits< double >::infinity())
Return mode of prior (in range).
Definition: BCPrior.cxx:65
virtual double GetLogPrior(double x) const
Get log of value of prior at parameter value.
Definition: BCParameter.cxx:91
std::string OneLineSummary(bool print_prefix=true, int name_length=-1) const
Definition: BCParameter.cxx:151
virtual void SetLimits(double lowerlimit=0, double upperlimit=1)
Set the limits of the variable values.
Definition: BCVariable.cxx:59
virtual void SetLimits(double lowerlimit=0, double upperlimit=1)
Set the limits of the parameter values.
Definition: BCParameter.cxx:81
virtual double GetRandomValue(double xmin, double xmax, TRandom *const R=NULL)
Definition: BCPrior.cxx:126
virtual double GetRangeWidth() const
Returns the range width of the variable values.
Definition: BCVariable.h:109
virtual double GetMean(double xmin=-std::numeric_limits< double >::infinity(), double xmax=std::numeric_limits< double >::infinity())
Get mean of prior.
Definition: BCPrior.h:173
virtual double GetVariance(double xmin=-std::numeric_limits< double >::infinity(), double xmax=std::numeric_limits< double >::infinity())
Get variance of prior.
Definition: BCPrior.h:181