|
libmcts
A Monte Carlo Tree Search Library
|
Computes variance, mean and standart deviation. http://www.johndcook.com/standard_deviation.html http://www.johndcook.com/skewness_kurtosis.html. More...
#include <running_stats.hpp>
Public Member Functions | |
| void | clear () |
| void | push (const double &x) |
| add a new value to the object More... | |
| long long | num_data_values () const |
| number of samples from which mean etc are calculated More... | |
| double | mean () const |
| double | variance () const |
| double | standard_deviation () const |
| double | skewness () const |
| double | kurtosis () const |
| RunningStats & | operator+= (const RunningStats &rhs) |
Friends | |
| RunningStats | operator+ (const RunningStats a, const RunningStats b) |
Computes variance, mean and standart deviation. http://www.johndcook.com/standard_deviation.html http://www.johndcook.com/skewness_kurtosis.html.
Definition at line 12 of file running_stats.hpp.
| long long mcts::RunningStats::num_data_values | ( | ) | const |
number of samples from which mean etc are calculated
Definition at line 30 of file running_stats.cpp.
Referenced by mcts::AvgBackpropagationStrategy::nb_samples().
| void mcts::RunningStats::push | ( | const double & | x | ) |
add a new value to the object
| x | numeric input value |
Definition at line 14 of file running_stats.cpp.
Referenced by mcts::AvgBackpropagationStrategy::on_backpropagate().
1.8.15