|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_UTILS_MATH_HISTOGRAM_ACCUMULATOR_H_
2 #define GENESIS_UTILS_MATH_HISTOGRAM_ACCUMULATOR_H_
131 bool integer_ranges =
false
146 std::map<double, double> values_;
147 size_t added_values_ = 0;
162 #endif // include guard
size_t added_values() const
Return the number of values that have been added to the Accumulator.
void swap(Color &lhs, Color &rhs)
~HistogramAccumulator()=default
void accumulate(double x, double weight)
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
HistogramAccumulator & operator=(HistogramAccumulator const &)=default
std::map< double, double >::const_iterator const_iterator
Histogram build_uniform_ranges_histogram(size_t num_bins, bool integer_ranges=false) const
const_iterator begin() const
Histogram helper class that collects data and builds a fitting Histogram.
const_iterator end() const
void swap(HistogramAccumulator &other)
Histogram class for accumulating and summarizing data.