Go to the documentation of this file.
35 namespace distributionModels
51 minValue_(distributionModelDict_.get<scalar>(
"minValue")),
52 maxValue_(distributionModelDict_.get<scalar>(
"maxValue")),
53 lambda_(distributionModelDict_.get<scalar>(
"lambda"))
62 minValue_(
p.minValue_),
63 maxValue_(
p.maxValue_),
78 scalar
y = rndGen_.sample01<scalar>();
79 scalar
K =
exp(-lambda_*maxValue_) -
exp(-lambda_*minValue_);
80 return -(1.0/lambda_)*
log(
exp(-lambda_*minValue_) +
y*
K);
virtual scalar sample() const
Sample the distributionModel.
virtual ~exponential()
Destructor.
exponential(const dictionary &dict, Random &rndGen)
Construct from components.
addToRunTimeSelectionTable(distributionModel, binned, dictionary)
dimensionedScalar exp(const dimensionedScalar &ds)
A library of runtime-selectable distribution models.
virtual scalar minValue() const
Return the minimum value.
CGAL::Exact_predicates_exact_constructions_kernel K
virtual scalar maxValue() const
Return the maximum value.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dimensionedScalar log(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
virtual scalar meanValue() const
Return the mean value.
defineTypeNameAndDebug(binned, 0)
exponential distribution model