Gadget
|
This is the class that calculates a log likelihood score by comparing 2 vectors based on a multinomial distribution. More...
#include <multinomial.h>
Public Member Functions | |
Multinomial () | |
This is the default Multinomial constructor. More... | |
~Multinomial () | |
This is the default Multinomial destructor. More... | |
void | setValue (double value) |
This function will set the minimum probability value. More... | |
void | Reset () |
This function will reset the log likelihood score. More... | |
double | calcLogLikelihood (const DoubleVector &data, const DoubleVector &dist) |
This is the function that calculates a log likelihood score by comparing 2 vectors based on a multinomial distribution. More... | |
double | getLogLikelihood () const |
This will return the log likelihood score. More... | |
Protected Attributes | |
double | bigvalue |
This is used to calculate the default minimum probability for unlikely values. More... | |
double | loglikelihood |
This is the log likelihood score. More... | |
This is the class that calculates a log likelihood score by comparing 2 vectors based on a multinomial distribution.
|
inline |
This is the default Multinomial constructor.
|
inline |
This is the default Multinomial destructor.
double Multinomial::calcLogLikelihood | ( | const DoubleVector & | data, |
const DoubleVector & | dist | ||
) |
This is the function that calculates a log likelihood score by comparing 2 vectors based on a multinomial distribution.
data | is the DoubleVector containing the input data |
dist | is the DoubleVector containing the modelled data |
|
inline |
This will return the log likelihood score.
|
inline |
This function will reset the log likelihood score.
|
inline |
This function will set the minimum probability value.
value | is the bigvalue used to calculate the minimum probabilty |
|
protected |
This is used to calculate the default minimum probability for unlikely values.
|
protected |
This is the log likelihood score.