Public Member Functions | |
BinomialFixedN () | |
Class constructor. | |
BinomialFixedN (int n) | |
Class constructor. | |
double | F (PVector T) |
Computes the log normalizer . | |
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 L1, PVector L2) |
Computes the Kullback-Leibler divergence between two Binomial distributions. |
where are the natural parameters. This class implements the different functions allowing to express a Binomial distribution as a member of an exponential family.
jMEF.BinomialFixedN.BinomialFixedN | ( | ) |
Class constructor.
jMEF.BinomialFixedN.BinomialFixedN | ( | int | n | ) |
Class constructor.
n | parameter n |
Computes the density value .
x | a point | |
param | parameters (source, natural, or expectation) |
Draws a point from the considered distribution.
L | source parameters |
Converts expectation parameters to source parameters.
H | expectation parameters |
double jMEF.BinomialFixedN.F | ( | PVector | T | ) |
Computes the log normalizer .
T | natural parameters |
double jMEF.BinomialFixedN.G | ( | PVector | H | ) |
Computes .
H | expectation parameters |
Computes .
T | natural parameters |
Computes .
H | expectation parameters |
double jMEF.BinomialFixedN.k | ( | PVector | x | ) |
Computes the carrier measure .
x | a point |
Computes the Kullback-Leibler divergence between two Binomial distributions.
L1 | source parameters | |
L2 | 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 |