BCParameterSet.cxx
111 if (fVars[i].Fixed() && (fVars[i].GetFixedValue() - x[i]) > std::numeric_limits<double>::epsilon())
148 p.push_back((fVars[i].Fixed()) ? fVars[i].GetFixedValue() : fVars[i].GetRandomValueAccordingToPrior(R));
virtual std::vector< double > GetUniformRandomValues(TRandom *const R) const
Get vector of values uniformly distributed in parameter ranges (or at fixed values, if fixed)
Definition: BCParameterSet.cxx:135
virtual unsigned int GetNFixedParameters() const
Definition: BCParameterSet.cxx:23
virtual void ValueFromPositionInRange(std::vector< double > &p) const
Translate from unit interval to values in variable ranges, fixing fixed parameters along the way...
Definition: BCParameterSet.cxx:117
virtual std::vector< double > GetFixedValues(bool include_unfixed=true) const
Get vector of fixed values.
Definition: BCParameterSet.cxx:71
virtual bool IsWithinLimits(const std::vector< double > &x) const
Check if vector of values is within limits.
Definition: BCParameterSet.cxx:92
virtual bool IsAtFixedValues(const std::vector< double > &x) const
Check if fixed parameters in vector of values are at fixed values.
Definition: BCParameterSet.cxx:106
virtual double GetLogPrior(const std::vector< double > ¶meters) const
Get log of prior; assumes independent priors given for all parameters in set.
Definition: BCParameterSet.cxx:55
std::vector< BCParameter > fVars
Vector of BCVariables that forms the set.
Definition: BCVariableSet.h:314
virtual std::vector< double > GetRangeCenters() const
Get range centers, leaving fixed parameters at fixed values.
Definition: BCParameterSet.cxx:126
virtual bool ArePriorsSet(bool ignore_fixed=true) const
Check whether all parameters have factorized priors set.
Definition: BCParameterSet.cxx:81
virtual bool ApplyFixedValues(std::vector< double > &x) const
Change values to fixed values for fixed parameters.
Definition: BCParameterSet.cxx:153
virtual std::vector< double > GetRandomValuesAccordingToPriors(TRandom *const R) const
Get vector values distributed randomly by the parameter priors.
Definition: BCParameterSet.cxx:144
Wrapper to allow access by name into list of BCVariable.
Definition: BCVariableSet.h:35