33 namespace distributionModels
49 minValue_(
readScalar(distributionModelDict_.lookup(
"minValue"))),
50 maxValue_(
readScalar(distributionModelDict_.lookup(
"maxValue")))
59 minValue_(p.minValue_),
60 maxValue_(p.maxValue_)
92 return 0.5*(minValue_ + maxValue_);
A list of keyword definitions, which are a keyword followed by any number of values (e...
cachedRandom & rndGen_
Reference to the random number generator.
Macros for easy insertion into run-time selection tables.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
defineTypeNameAndDebug(exponential, 0)
A library of runtime-selectable distribution models.
addToRunTimeSelectionTable(distributionModel, exponential, dictionary)
Type position(const Type &start, const Type &end)
Return a sample between start and end.