add namespace - statistics

This commit is contained in:
Krishna Vedala 2020-05-31 23:00:49 -04:00
parent 579620271f
commit 1125c85b3f

View File

@ -10,6 +10,12 @@
#include <cmath>
#include <iostream>
/**
* \namespace statistics
* \brief Statistical algorithms
*/
namespace statistics {
/**
* continuous mean and variance computance using
* first value as an approximation for the mean.
@ -100,6 +106,11 @@ class stats_computer2 {
double mu = 0, var = 0, M = 0;
};
} // namespace statistics
using statistics::stats_computer1;
using statistics::stats_computer2;
/** Test the algorithm implementation
* \param[in] test_data array of data to test the algorithms
*/