180#ifndef distributionModels_multiNormal_H
181#define distributionModels_multiNormal_H
189namespace distributionModels
198 public distributionModel
210 List<scalar> weight_;
228 virtual autoPtr<distributionModel>
clone()
const
230 return autoPtr<distributionModel>(
new multiNormal(*
this));
234 void operator=(
const multiNormal&) =
delete;
244 virtual scalar
sample()
const;
247 scalar
sample(
const scalar
mu,
const scalar sigma)
const;
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A library of runtime-selectable doubly-truncated probability distribution models. Returns random samp...
Particle-size distribution model wherein random samples are drawn from a mixture of a finite set of d...
virtual scalar meanValue() const
Return the theoretical mean of the distribution.
multiNormal(const dictionary &dict, Random &rndGen)
Construct from components.
virtual autoPtr< distributionModel > clone() const
Construct and return a clone.
virtual scalar sample() const
Sample the distribution.
virtual ~multiNormal()=default
Destructor.
void operator=(const multiNormal &)=delete
No copy assignment.
TypeName("multiNormal")
Runtime type information.
const volScalarField & mu
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.