Public Member Functions | |
MultinomialFixedN () | |
Class constructor. | |
MultinomialFixedN (int n) | |
Class constructor. | |
double | F (PVector T) |
Computes . | |
PVector | gradF (PVector T) |
Computes . | |
double | G (PVector H) |
Computes . | |
PVector | gradG (PVector H) |
Computes . | |
PVector | t (PVector x) |
Computes the sufficient statistic . | |
double | k (PVector x) |
Computes the carrier measure . | |
PVector | Lambda2Theta (PVector L) |
Converts source parameters to natural parameters. | |
PVector | Theta2Lambda (PVector T) |
Converts natural parameters to source parameters. | |
PVector | Lambda2Eta (PVector L) |
Converts source parameters to expectation parameters. | |
PVector | Eta2Lambda (PVector H) |
Converts expectation parameters to source parameters. | |
double | density (PVector x, PVector param) |
Computes the density value . | |
PVector | drawRandomPoint (PVector L) |
Draws a point from the considered distribution. | |
double | KLD (PVector LA, PVector LB) |
Computes the Kullback-Leibler divergence between two Binomial distributions. |
where are the natural parameters. This class implements the different functions allowing to express a Multinomial distribution as a member of an exponential family.
jMEF.MultinomialFixedN.MultinomialFixedN | ( | ) |
Class constructor.
jMEF.MultinomialFixedN.MultinomialFixedN | ( | int | n | ) |
Class constructor.
n | parameter n |
Computes the density value .
x | point | |
param | parameters (source, natural, or expectation) |
Draws a point from the considered distribution.
L | source parameters |
Converts expectation parameters to source parameters.
H | natural parameters |
double jMEF.MultinomialFixedN.F | ( | PVector | T | ) |
Computes .
T | parameters |
double jMEF.MultinomialFixedN.G | ( | PVector | H | ) |
Computes .
H | expectation parameters |
Computes .
T | naturel parameters |
Computes .
H | expectation parameters |
double jMEF.MultinomialFixedN.k | ( | PVector | x | ) |
Computes the carrier measure .
x | a point |
Computes the Kullback-Leibler divergence between two Binomial distributions.
LA | source parameters | |
LB | source parameters |
Converts source parameters to expectation parameters.
L | source parameters |
Converts source parameters to natural parameters.
L | source parameters |
Computes the sufficient statistic .
x | a point |
Converts natural parameters to source parameters.
T | natural parameters |