yat
0.20.3pre
|
#include <yat/statistics/NegativeBinomialExtendedMixture.h>
Public Member Functions | |
void | add (unsigned long int k, double y) |
Add a data point. More... | |
const utility::Vector & | alpha (void) const |
void | clear (void) |
remove all data | |
void | fit (size_t n) |
void | fit (const utility::VectorBase &m, const utility::VectorBase &alpha, const utility::VectorBase &tau) |
double | logL (void) const |
const utility::Vector & | m (void) const |
const utility::Vector & | tau (void) const |
Data are modeled as
where is a known sample-specific constant and is a random variable from a mixture of negative binomial distributions.
void theplu::yat::statistics::NegativeBinomialExtendedMixture::add | ( | unsigned long int | k, |
double | y | ||
) |
Add a data point.
k | random variable drawn from a mixture of negative binomial distributions. |
y | sample specific sample constant (see class description) |
const utility::Vector& theplu::yat::statistics::NegativeBinomialExtendedMixture::alpha | ( | void | ) | const |
The alpha values are defined as
void theplu::yat::statistics::NegativeBinomialExtendedMixture::fit | ( | size_t | n | ) |
Fit the data to a model with n sub-distributions.
void theplu::yat::statistics::NegativeBinomialExtendedMixture::fit | ( | const utility::VectorBase & | m, |
const utility::VectorBase & | alpha, | ||
const utility::VectorBase & | tau | ||
) |
Fit the data initiating the search for the optimal model parameters at the values passed.
double theplu::yat::statistics::NegativeBinomialExtendedMixture::logL | ( | void | ) | const |
const utility::Vector& theplu::yat::statistics::NegativeBinomialExtendedMixture::m | ( | void | ) | const |
The mean is calculated as
const utility::Vector& theplu::yat::statistics::NegativeBinomialExtendedMixture::tau | ( | void | ) | const |