41 #ifndef BPP_NUMERIC_TRANSFORMEDPARAMETER_H
42 #define BPP_NUMERIC_TRANSFORMEDPARAMETER_H
135 RTransformedParameter(
const std::string& name,
double value,
double bound = 0,
bool positive =
true,
double scale = 1) :
170 if (x < 0)
return exp(x) /
scale_;
172 else if (x < 0)
return exp(-x) /
scale_;
180 if (x < 0)
return exp(x) /
scale_;
182 else if (x < 0)
return -exp(-x) /
scale_;
222 IntervalTransformedParameter(
const std::string& name,
double value,
double lowerBound = 0,
double upperBound = 1,
double scale = 1,
bool hyper =
true) :
224 scale * atanh(2. * (value - lowerBound) / (upperBound - lowerBound) - 1.) :
Exception thrown when a value do not match a given constraint.
this static class contains several useful constant values.
This class is designed to facilitate the manipulation of parameters.
virtual void setValue(double value)
Set the value of this parameter.
virtual double getValue() const
Get the value of this parameter.