Go to the documentation of this file.
38 #ifndef distributionModels_binned_H
39 #define distributionModels_binned_H
53 namespace distributionModels
59 Istream&
operator>>(Istream&, distributionModels::binned&);
60 Ostream&
operator<<(Ostream&,
const distributionModels::binned&);
62 namespace distributionModels
107 const scalar binWidth,
128 virtual scalar
sample()
const;
virtual void readDict(const dictionary &dict)
Read data from dictionary.
virtual scalar maxValue() const
Return the maximum value.
virtual void writeData(Ostream &os) const
Write data to stream.
A class for handling words, derived from Foam::string.
TypeName("binned")
Runtime type information.
virtual void readData(Istream &os)
Read data from stream.
const word dictName("blockMeshDict")
A binned distribution model where the random sample is taken from a discrete set of bins.
Istream & operator>>(Istream &, directionInfo &)
A library of runtime-selectable distribution models.
virtual scalar meanValue() const
Return the mean value.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
virtual scalar sample() const
Sample the distributionModel.
virtual scalar minValue() const
Return the minimum value.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual ~binned()
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static const char * header
binned(const dictionary &dict, Random &rndGen)
Construct from dictionary.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual autoPtr< distributionModel > clone() const
Construct and return a clone.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
virtual dictionary writeDict(const word &dictName) const
Write data in dictionary format.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...