yat
0.20.3pre
|
Infer Poissonian mixed model. More...
#include <yat/statistics/PoissonMixture.h>
Public Member Functions | |
void | add (unsigned long int k, unsigned long int n=1) |
void | clear (void) |
Remove all data points. | |
void | fit (size_t n) |
void | fit (const yat::utility::VectorBase &m, const yat::utility::VectorBase &tau) |
double | logL (void) |
double | mean (size_t i) const |
double | tau (size_t i) const |
Infer Poissonian mixed model.
Data are described as a mixed model of Poissonians where
void theplu::yat::statistics::PoissonMixture::add | ( | unsigned long int | k, |
unsigned long int | n = 1 |
||
) |
Add n
data point(s)
void theplu::yat::statistics::PoissonMixture::fit | ( | size_t | n | ) |
Create n sub-models and tune their parameters such that the logL is maximized.
void theplu::yat::statistics::PoissonMixture::fit | ( | const yat::utility::VectorBase & | m, |
const yat::utility::VectorBase & | tau | ||
) |
Initialise the model parameters as m
and tau
and fit the data by maximizing logL.
double theplu::yat::statistics::PoissonMixture::logL | ( | void | ) |
Log likelihood is calculated as
double theplu::yat::statistics::PoissonMixture::mean | ( | size_t | i | ) | const |
i
double theplu::yat::statistics::PoissonMixture::tau | ( | size_t | i | ) | const |
i