13#if !defined(VITA_DISTRIBUTION_H)
14#define VITA_DISTRIBUTION_H
21#include "utility/utility.h"
37 template<
class U>
void add(U);
39 std::uintmax_t count()
const;
40 double entropy()
const;
44 const std::map<T, std::uintmax_t> &seen()
const;
45 T standard_deviation()
const;
48 bool is_valid()
const;
51 bool load(std::istream &);
52 bool save(std::ostream &)
const;
55 void update_variance(T);
58 std::map<T, std::uintmax_t> seen_;
65 std::uintmax_t count_;
68#include "kernel/distribution.tcc"
Simplifies the calculation of statistics regarding a sequence (mean, variance, standard deviation,...
The main namespace for the project.