|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file.
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 );
double sum(const Histogram &h)
Header of Histogram class.
void scale(Histogram &h, double factor)
void offset(Histogram &h, double value)
Header of Histogram operations functions.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
Header of Histogram statistics functions.
void normalize(Histogram &h, double total)
Histogram class for accumulating and summarizing data.