5 #ifndef HERALD_DISTRIBUTION_H
6 #define HERALD_DISTRIBUTION_H
26 void add(
double x) noexcept;
28 void add(
double x,
std::
size_t frequency) noexcept;
35 const
double mean() const noexcept;
41 const
double min() const noexcept;
43 const
double max() const noexcept;
46 operator
std::
string() const noexcept;
Definition: distribution.h:16
const std::size_t count() const noexcept
return the count
const double min() const noexcept
Return the minimum recorded value.
const double standardDeviation() const noexcept
Return the standard deviation.
const double variance() const noexcept
return the variance
Distribution() noexcept
Initialise an empty distribution.
void add(double x) noexcept
Add a single occurence of a value.
void reset() noexcept
Reset this instance to its initial state.
const double max() const noexcept
Return the maximum recorded value.
const double mean() const noexcept
return the mean
Acts as a non-global memory arena for arbitrary classes.
Definition: aggregates.h:15