16 #define MYGSL_MEAN_H 1 23 #include <boost/cstdint.hpp> 32 size_t get_n ()
const;
37 double get_variance (
bool bessel_correction_ =
false)
const;
40 void add (
double value_);
41 void remove (
double value_);
45 double _sum_of_squared_;
58 void add (
double value_,
double weight_);
61 double _weighted_sum_;
66 #endif // MYGSL_MEAN_H
Arithmetic mean computing algorithm.
Definition: mean.h:28
double get_sum_of_squared() const
void add(double value_, double weight_)
Weighted mean computing algorithm.
Definition: mean.h:49
double get_mean_of_squared() const
void remove(double value_)
double get_weight() const
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
double get_variance(bool bessel_correction_=false) const
double get_weighted_sum() const