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