60 #ifndef tabulatedCumulative_H
61 #define tabulatedCumulative_H
70 namespace distributions
135 virtual scalar
sample()
const;
141 virtual scalar
min()
const;
144 virtual scalar
max()
const;
147 virtual scalar
mean()
const;
154 const bool consistent =
false
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
autoPtr< distribution > clone() const
Construct and return a clone.
label sampleQ() const
Access the sample size exponent.
Distribution in which the cumulative distribution function is given as a table of values.
TypeName("tabulatedCumulative")
Runtime type information.
virtual ~tabulatedCumulative()
Destructor.
virtual tmp< scalarField > integralPDFxPow(const scalarField &x, const label e, const bool consistent=false) const
Return the integral of the PDF multiplied by an integer power of x.
virtual scalar min() const
Return the minimum value.
virtual scalar sample() const
Sample the distribution.
tabulatedCumulative(const unitConversion &units, const dictionary &dict, const label sampleQ, randomGenerator &&rndGen)
Construct from a dictionary.
virtual tmp< scalarField > plotPDF(const scalarField &x) const
Return values to plot the probability density function.
virtual void write(Ostream &os, const unitConversion &units) const
Write to a stream.
virtual scalar max() const
Return the maximum value.
virtual scalar mean() const
Return the mean value.
virtual tmp< scalarField > plotX(const label n) const
Return coordinates to plot across the range of the distribution.
A class for managing temporary objects.
Unit conversion structure. Contains the associated dimensions and the multiplier with which to conver...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const HashTable< unitConversion > & units()
Get the table of unit conversions.
randomGenerator rndGen(653213)