33 namespace distributionModels
49 minValue_(
readScalar(distributionModelDict_.lookup(
"minValue"))),
50 maxValue_(
readScalar(distributionModelDict_.lookup(
"maxValue"))),
51 d_(
readScalar(distributionModelDict_.lookup(
"d"))),
52 n_(
readScalar(distributionModelDict_.lookup(
"n")))
61 minValue_(p.minValue_),
62 maxValue_(p.maxValue_),
78 scalar
K = 1.0 -
exp(-
pow((maxValue_ - minValue_)/d_, n_));
80 scalar
x = minValue_ + d_*
::pow(-
log(1.0 - y*K), 1.0/n_);
dimensionedScalar log(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by any number of values (e...
defineTypeNameAndDebug(distributionModel, 0)
CGAL::Exact_predicates_exact_constructions_kernel K
Macros for easy insertion into run-time selection tables.
virtual scalar meanValue() const
Return the mean value.
Type sample01()
Return a sample whose components lie in the range 0-1.
dimensionedScalar exp(const dimensionedScalar &ds)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
RosinRammler(const dictionary &dict, cachedRandom &rndGen)
Construct from components.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
virtual scalar sample() const
Sample the distributionModel.
virtual ~RosinRammler()
Destructor.
virtual scalar minValue() const
Return the minimum value.
cachedRandom & rndGen_
Reference to the random number generator.
addToRunTimeSelectionTable(distributionModel, exponential, dictionary)
virtual scalar maxValue() const
Return the maximum value.