Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
|
Public Member Functions | |
void | new_val (T x) |
double | mean () const |
double | variance () const |
double | std () const |
Private Attributes | |
unsigned int | n = 0 |
double | mu = 0 |
double | var = 0 |
double | M = 0 |
Friends | |
std::istream & | operator>> (std::istream &input, stats_computer2 &stat) |
continuous mean and variance computance using Welford's algorithm (very accurate)
|
inline |
return sample mean computed till last sample
|
inline |
Constructor
[in] | x | new data sample |
|
inline |
return sample standard deviation computed till last sample
|
inline |
return data variance computed till last sample
|
friend |