A toolkit for working with phylogenetic data.
v0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 <assert.h>
#include <cmath>
#include <iterator>
#include <numeric>
#include "genesis/utils/math/histogram.hpp"

Go to the source code of this file.

Namespaces

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

Functions

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)