Go to the documentation of this file.
40 #ifndef distribution_H
41 #define distribution_H
55 Ostream&
operator<<(Ostream&,
const distribution&);
115 void add(
const scalar valueToAdd);
117 void add(
const label valueToAdd);
Accumulating histogram of values. Specified bin resolution automatic generation of bins.
void add(const scalar valueToAdd)
Add a value to the appropriate bin of the distribution.
A class for handling file names.
friend Ostream & operator<<(Ostream &, const distribution &)
void operator=(const distribution &)
A HashTable to objects of type <T> with a label key.
List< Pair< scalar > > normalisedMinusMean()
TypeName("distribution")
Runtime type information.
label totalEntries() const
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
scalar approxTotalEntries() const
List< Pair< scalar > > raw()
static void write(const fileName &file, const List< Pair< scalar >> &pairs)
Write to file.
virtual ~distribution()
Destructor.
distribution()
Construct null.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
List< Pair< scalar > > normalised()
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
List< Pair< scalar > > normalisedShifted(scalar shiftValue)