jMEF.Rayleigh Class Reference

List of all members.

Public Member Functions

double F (PVector T)
 Computes the log normalizer $ F( \mathbf{\Theta} ) $.
PVector gradF (PVector T)
 Computes $ \nabla F ( \mathbf{\Theta} )$.
double G (PVector H)
 Computes $ G(\mathbf{H})$.
PVector gradG (PVector H)
 Computes $ \nabla G (\mathbf{H})$.
PVector t (PVector x)
 Computes the sufficient statistic $ t(x)$.
double k (PVector x)
 Computes the carrier measure $ k(x) $.
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 $ f(x;p) $.
PVector drawRandomPoint (PVector L)
 Draws a point from the considered distribution.
double KLD (PVector LP, PVector LQ)
 Computes the Kullback-Leibler divergence between two Binomial distributions.


Detailed Description

Author:
Vincent Garcia

Frank Nielsen

Version:
1.0

License

See file LICENSE.txt

Description

The Rayleigh is an exponential family and, as a consequence, the probability density function is given by

\[ f(x; \mathbf{\Theta}) = \exp \left( \langle t(x), \mathbf{\Theta} \rangle - F(\mathbf{\Theta}) + k(x) \right) \]

where $ \mathbf{\Theta} $ are the natural parameters. This class implements the different functions allowing to express a Rayleigh distribution as a member of an exponential family.

Parameters

The parameters of a given distribution are:

Member Function Documentation

double jMEF.Rayleigh.density ( PVector  x,
PVector  param 
)

Computes the density value $ f(x;p) $.

Parameters:
x a point
param parameters (source, natural, or expectation)
Returns:
$ f(x;\sigma^2) = \frac{x}{\sigma^2} \exp \left( -\frac{x^2}{2\sigma^2} \right) $

PVector jMEF.Rayleigh.drawRandomPoint ( PVector  L  ) 

Draws a point from the considered distribution.

Parameters:
L source parameters $ \mathbf{\Lambda} = \sigma^2 $
Returns:
a point

PVector jMEF.Rayleigh.Eta2Lambda ( PVector  H  ) 

Converts expectation parameters to source parameters.

Parameters:
H expectation parameters $ \mathbf{H} = \eta$
Returns:
source parameters $ \mathbf{\Lambda} = \frac{\eta}{2} $

double jMEF.Rayleigh.F ( PVector  T  ) 

Computes the log normalizer $ F( \mathbf{\Theta} ) $.

Parameters:
T natural parameters $ \mathbf{\Theta} = \theta $
Returns:
$ F(\mathbf{\theta}) = - \log (-2 \theta) $

double jMEF.Rayleigh.G ( PVector  H  ) 

Computes $ G(\mathbf{H})$.

Parameters:
H expectation parameters $ \mathbf{H} = \eta $
Returns:
$ G(\mathbf{\eta}) = - \log \eta $

PVector jMEF.Rayleigh.gradF ( PVector  T  ) 

Computes $ \nabla F ( \mathbf{\Theta} )$.

Parameters:
T natural parameters $ \mathbf{\Theta} = \theta $
Returns:
$ \nabla F(\mathbf{\theta}) = -\frac{1}{\theta} $

PVector jMEF.Rayleigh.gradG ( PVector  H  ) 

Computes $ \nabla G (\mathbf{H})$.

Parameters:
H expectation parameters $ \mathbf{H} = \eta $
Returns:
$ \nabla G(\mathbf{\eta}) = -\frac{1}{\eta} $

double jMEF.Rayleigh.k ( PVector  x  ) 

Computes the carrier measure $ k(x) $.

Parameters:
x a point
Returns:
$ k(x) = \log x $

double jMEF.Rayleigh.KLD ( PVector  LP,
PVector  LQ 
)

Computes the Kullback-Leibler divergence between two Binomial distributions.

Parameters:
LP source parameters $ \mathbf{\Lambda}_P $
LQ source parameters $ \mathbf{\Lambda}_Q $
Returns:
$ D_{\mathrm{KL}}(f_P \| f_Q) = \log \left( \frac{\sigma_Q^2}{\sigma_P^2} \right) + \frac{ \sigma_P^2 - \sigma_Q^2 }{\sigma_Q^2} $

PVector jMEF.Rayleigh.Lambda2Eta ( PVector  L  ) 

Converts source parameters to expectation parameters.

Parameters:
L source parameters $ \mathbf{\Lambda} = \sigma^2 $
Returns:
expectation parameters $ \mathbf{H} = 2 \sigma^2 $

PVector jMEF.Rayleigh.Lambda2Theta ( PVector  L  ) 

Converts source parameters to natural parameters.

Parameters:
L source parameters $ \mathbf{\Lambda} = \sigma^2 $
Returns:
natural parameters $ \mathbf{\Theta} = -\frac{1}{2 \sigma^2} $

PVector jMEF.Rayleigh.t ( PVector  x  ) 

Computes the sufficient statistic $ t(x)$.

Parameters:
x a point
Returns:
$ t(x) = x^2 $

PVector jMEF.Rayleigh.Theta2Lambda ( PVector  T  ) 

Converts natural parameters to source parameters.

Parameters:
T natural parameters $ \mathbf{\Theta} = \theta $
Returns:
source parameters $ \mathbf{\Lambda} = -\frac{1}{2\theta} $


The documentation for this class was generated from the following file:

Generated on Mon Nov 23 15:46:26 2009 for jMEF by  doxygen 1.5.9