1 #ifndef _theplu_yat_statistics_gaussian_mixture_ 2 #define _theplu_yat_statistics_gaussian_mixture_ 25 #include <yat/utility/Vector.h> 35 namespace statistics {
51 void add(
double x,
unsigned long int n=1);
56 double alpha(
size_t i)
const;
61 double cdf_P(
double x)
const;
87 double mean(
void)
const;
92 double mean(
size_t i)
const;
97 double pdf(
double x)
const;
102 double std(
size_t i)
const;
107 data_type(
double x,
unsigned long int n);
111 std::vector<data_type> data_;
double std(size_t i) const
double pdf(double x) const
The Department of Theoretical Physics namespace as we define it.
Data modelled as mixture of Gaussian distributions.
Definition: GaussianMixture.h:45
double alpha(size_t i) const
This is the yat interface to GSL vector.
Definition: Vector.h:59
void add(double x, unsigned long int n=1)
void fit(size_t n)
fit the model
double cdf_P(double x) const
void clear(void)
Clear all data.
Interface to GSL matrix.
Definition: Matrix.h:104