53 #ifndef distributionModel_H 54 #define distributionModel_H 86 virtual void check()
const;
141 virtual scalar
sample()
const = 0;
144 virtual scalar
minValue()
const = 0;
147 virtual scalar
maxValue()
const = 0;
TypeName("distributionModel")
Runtime type information.
Random & rndGen_
Reference to the random number generator.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual autoPtr< distributionModel > clone() const =0
Construct and return a clone.
virtual scalar minValue() const =0
Return the minimum value.
virtual scalar maxValue() const =0
Return the maximum value.
declareRunTimeSelectionTable(autoPtr, distributionModel, dictionary,(const dictionary &dict, Random &rndGen),(dict, rndGen))
Declare runtime constructor selection table.
virtual scalar meanValue() const =0
Return the maximum value.
virtual scalar sample() const =0
Sample the distributionModel.
distributionModel(const word &name, const dictionary &dict, Random &rndGen)
Construct from dictionary.
A class for handling words, derived from string.
virtual void check() const
Check that the distribution model is valid.
virtual ~distributionModel()
Destructor.
word name(const complex &)
Return a string representation of a complex.
static autoPtr< distributionModel > New(const dictionary &dict, Random &rndGen)
Selector.
A library of runtime-selectable distribution models.
const dictionary distributionModelDict_
Coefficients dictionary.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...