A library for working with phylogenetic and population genetic data.
utils/math/histogram/stats.cpp File Reference

Detailed Description

Implementation of Histogram statistics functions.

Definition in file utils/math/histogram/stats.cpp.

#include "genesis/utils/math/histogram/stats.hpp"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iterator>
#include <numeric>
#include "genesis/utils/math/histogram.hpp"

Go to the source code of this file.


 Container namespace for all symbols of genesis in order to keep them separate when used as a library.


size_t max_bin (const Histogram &h)
double max_value (const Histogram &h)
double mean (const Histogram &h)
 Compute the bin-weighted arithmetic mean. More...
double median (const Histogram &h)
size_t min_bin (const Histogram &h)
double min_value (const Histogram &h)
double sigma (const Histogram &h)
 Compute the bin-weighted standard deviation. More...
double sum (const Histogram &h)