Go to the documentation of this file.
40 #ifndef Distribution_H
41 #define Distribution_H
67 public List<List<scalar>>
124 const Type& valueToAdd,
151 inline const Type&
binWidth()
const;
169 friend Istream&
operator>> <Type>
175 friend Ostream& operator<< <Type>
pTraits< Type >::cmptType cmptType
Component type.
Pair< label > validLimits(direction cmpt) const
Returns the indices of the first and last non-zero entries.
A class for handling file names.
~Distribution()
Destructor.
List< List< Pair< scalar > > > cumulativeNormalised() const
Return the cumulative normalised distribution and.
List< List< Pair< scalar > > > cumulativeRaw() const
Return the cumulative total bin weights and integration.
Istream & operator>>(Istream &, directionInfo &)
const List< label > & listStarts() const
Return the List start bin indices.
List< List< Pair< scalar > > > raw() const
Return the distribution of the total bin weights.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
scalar totalWeight(direction cmpt) const
Sum the total weight added to the component in the.
List< label > keys(direction cmpt) const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void write(const fileName &filePrefix) const
Write the distribution to file: key normalised raw.
Accumulating histogram of component values. Specified bin resolution, automatic generation of bins.
label index(direction cmpt, label n)
Return the appropriate List index for the given bin index.
const Type & binWidth() const
Return the bin width.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A traits class, which is primarily used for primitives.
void clear()
Resets the Distribution by clearing the stored lists.
List< List< Pair< scalar > > > normalised() const
Return the normalised distribution (probability density)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void add(const Type &valueToAdd, const Type &weight=pTraits< Type >::one)
Add a value to the distribution, optionally specifying a weight.
void operator=(const Distribution< Type > &)
Distribution()
Construct null.