49 for (
size_t i = 0; i < h.
bins(); ++i) {
56 for (
size_t i = 0; i < h.
bins(); ++i) {
64 auto const s =
sum( h );
65 if( std::isfinite(s) && s > 0.0 ) {
66 scale( h, total / s );
void offset(Histogram &h, double value)
Header of Histogram class.
Histogram class for accumulating and summarizing data.
double sum(const Histogram &h)
Container namespace for all symbols of genesis in order to keep them separate when used as a library...
Header of Histogram operations functions.
Header of Histogram statistics functions.
void scale(Histogram &h, double factor)
void normalize(Histogram &h, double total)