42 #ifndef standardNormal_H
43 #define standardNormal_H
51 namespace distributions
65 static const scalar a_;
96 const bool global =
false
116 virtual scalar
sample()
const;
122 virtual scalar
min()
const;
125 virtual scalar
max()
const;
128 virtual scalar
mean()
const;
135 const bool consistent =
false
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
autoPtr< distribution > clone() const
Construct and return a clone.
label sampleQ() const
Access the sample size exponent.
Multiple superimposed normal distributions.
Standard normal distribution. Not selectable.
static tmp< scalarField > approxErf(const scalarField &x)
Approximate error function.
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 ~standardNormal()
Destructor.
virtual scalar sample() const
Sample the distribution.
TypeName("standardNormal")
Runtime type information.
static scalar approxErfInv(const scalar y)
Approximate error function inverse.
virtual tmp< scalarField > plotPDF(const scalarField &x) const
Return values to plot the probability density function.
standardNormal(randomGenerator &&rndGen)
Construct from a random generator.
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.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), lagrangian::cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
randomGenerator rndGen(653213)