10 if (quantity ==
"high")
12 else if (quantity ==
"low")
vector< double > parameters
Distribution parameters vector.
double EvalLog(const double &x)
Evaluate natural logarithm of probability density.
distribution_type distribution
The type of probability distribution.
Represents a model parameter with prior distribution and constraints.
double GetVal(const string &quantity)
Get range bound by string identifier.
double value
Current value of the parameter.
Parameter()
Default constructor.
string name
Parameter name/identifier.
double CalcLogPriorProbability(const double x)
Calculate log prior probability density at a given value.
Distribution prior_distribution
The prior probability distribution for this parameter.
double GetRange(_range lowhigh)
Get a specific range bound.
vector< double > range
Allowable range for the parameter [low, high].
void SetRange(const vector< double > &rng)
Set the parameter range from a vector.
void UpdatePriorDistribution()
Update prior distribution parameters based on current range.
Parameter & operator=(const Parameter ¶m)
Assignment operator.
@ lognormal
Lognormal distribution: ln(x) ~ N(μ, σ²), for strictly positive variables.
@ normal
Normal (Gaussian) distribution: p(x) = N(μ, σ²)
_range
Enumeration for specifying parameter range bounds.
@ low
Lower bound of the parameter range.
@ high
Upper bound of the parameter range.