71 return sampleForZeroQ();
88 if (!consistent && q() +
e == 0)
92 return (PhiForZeroQ(xClip) - Phi01[0])/(Phi01[1] - Phi01[0]);
An ordered pair of two objects of type <Type> with first() and second() elements.
T & first()
Return the first element of the list.
T & last()
Return the last element of the list.
label q() const
Return the effective distribution size exponent.
virtual tmp< scalarField > Phi(const label q, const scalarField &x) const
Return values of the un-normalised CDF for the given size exponent.
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 sample() const
Sample the distribution.
virtual Pair< scalar > Phi01(const label q) const
Access cached values of the un-normalised CDF at the minimum and.
virtual tmp< scalarField > PhiForZeroQ(const scalarField &x) const =0
Return values of the un-normalised CDF for zero effective size.
virtual tmp< scalarField > Phi(const label q, const scalarField &x) const
Return values of the un-normalised CDF for the given size exponent.
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 sample() const
Sample the distribution.
const Pair< scalar > & Phi01() const
Access cached values of the un-normalised CDF at the minimum and.
A class for managing temporary objects.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
List< scalar > scalarList
A List of scalars.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)