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