|
STK++ 0.9.13
|
A joint Gaussian model is a statistical model of the form: following form. More...
#include <STK_JointGaussianModel.h>

Public Types | |
| typedef Array::Type | Type |
| Type of the data contained in the container. | |
| typedef hidden::Traits< Array >::Row | RowVector |
| Type of the row vector of the container. | |
| typedef hidden::Traits< Array >::Col | ColVector |
| Type of the column vector of the container. | |
| typedef IMultiStatModel< Array, WColVector, JointGaussianParameters > | Base |
| Base class. | |
Public Types inherited from STK::IMultiStatModel< Derived > | |
| typedef hidden::StatModelTraits< Derived >::Data | Data |
| Type of the container with the data. | |
| typedef hidden::StatModelTraits< Derived >::Type | Type |
| Type of the data in the container. | |
| typedef hidden::StatModelTraits< Derived >::WColVector | WColVector |
| Type of the vector with the weights. | |
| typedef hidden::StatModelTraits< Derived >::Parameters | Parameters |
| Type of the parameters of the Model. | |
Public Member Functions | |
| JointGaussianModel () | |
| default constructor. | |
| JointGaussianModel (Array const &data) | |
| Constructor with data set. | |
| JointGaussianModel (Array const *p_data) | |
| Constructor with a ptr on the data set. | |
| JointGaussianModel (JointGaussianModel const &model) | |
| Copy constructor. | |
| virtual | ~JointGaussianModel () |
| destructor | |
| JointGaussianModel * | clone () const |
| clone pattern. | |
| virtual int | computeNbFreeParameters () const |
| compute the number of free parameters | |
| virtual Real | computeLnLikelihood (RowVector const &rowData) const |
| compute the log Likelihood of an observation. | |
| Data const *const | p_data () const |
Public Member Functions inherited from STK::IMultiStatModel< Derived > | |
| Data const *const | p_data () const |
| Parameters const & | param () const |
| String const & | error () const |
| void | setData (Data const *p_data) |
| Set the data set. | |
| bool | run () |
| Estimate the parameters of the model and update the model. | |
| bool | run (WColVector const &weights) |
| compute the weighted empirical probability of success based on the observed variables. | |
| void | writeParameters (ostream &os) |
| void | writeParametersImpl (ostream &os) |
| default implementation of the writeParameters method. | |
Public Member Functions inherited from STK::IStatModelBase | |
| int | nbSample () const |
| Real | lnNbSample () const |
| int | nbVariable () const |
| Real | lnLikelihood () const |
| Real | likelihood () const |
| int | nbFreeParameter () const |
| Real | computeBIC () const |
| Real | computeAIC () const |
| Real | computeML () const |
Public Member Functions inherited from STK::IRecursiveTemplate< Derived > | |
| Derived & | asDerived () |
| static cast : return a reference of this with a cast to the derived class. | |
| Derived const & | asDerived () const |
| static cast : return a const reference of this with a cast to the derived class. | |
| Derived * | asPtrDerived () |
static cast : return a ptr on a Derived of this with a cast to the derived class. | |
| Derived const * | asPtrDerived () const |
static cast : return a ptr on a constant Derived of this with a cast to the derived class. | |
| Derived * | clone () const |
| create a leaf using the copy constructor of the Derived class. | |
| Derived * | clone (bool isRef) const |
| create a leaf using the copy constructor of the Derived class and a flag determining if the clone is a reference or not. | |
Protected Member Functions | |
| virtual void | computeParameters () |
| compute the parameters | |
| virtual void | computeParameters (WColVector const &weights) |
| compute the weighted parameters | |
Protected Member Functions inherited from STK::IMultiStatModel< Derived > | |
| IMultiStatModel () | |
| default constructor. | |
| IMultiStatModel (Data const &data) | |
| Constructor with data set. | |
| IMultiStatModel (Data const *p_data) | |
| Constructor with a ptr on the data set. | |
| IMultiStatModel (IMultiStatModel const &model) | |
| Copy constructor. | |
| ~IMultiStatModel () | |
| destructor | |
| Parameters & | param () |
| Real | computeLnLikelihood () const |
| compute the log Likelihood of the statistical model. | |
| void | update () |
| update the model if a new data set is set | |
Protected Member Functions inherited from STK::IStatModelBase | |
| IStatModelBase () | |
| Default constructor. | |
| IStatModelBase (int nbSample) | |
| Constructor with specified dimension. | |
| IStatModelBase (int nbSample, int nbVariable) | |
| Constructor with specified dimension. | |
| IStatModelBase (IStatModelBase const &model) | |
| Copy constructor. | |
| ~IStatModelBase () | |
| destructor | |
| void | setNbFreeParameter (int const &nbFreeParameter) |
| set the number of free parameters of the model | |
| void | setNbSample (int const &nbSample) |
| set the number of samples of the model | |
| void | setNbVariable (int const &nbVariable) |
| set the number of variables of the model | |
| void | setLnLikelihood (Real const &lnLikelihood) |
| set the log-likelihood of the model | |
| void | initialize (int nbSample, int nbVariable) |
| set the dimensions of the parameters of the model | |
Protected Member Functions inherited from STK::IRecursiveTemplate< Derived > | |
| IRecursiveTemplate () | |
| constructor. | |
| ~IRecursiveTemplate () | |
| destructor. | |
Additional Inherited Members | |
Protected Attributes inherited from STK::IMultiStatModel< Derived > | |
| Data const * | p_data_ |
| Pointer on the parameters of the model. | |
| Parameters | param_ |
| Pointer on the parameters of the model. | |
| String | msg_error_ |
| String with the last error message. | |
A joint Gaussian model is a statistical model of the form: following form.
![\[
f(\mathbf{x}_i|\theta) =
\prod_{j=1}^p
\frac{1}{\sigma_j\sqrt{2\pi}}
\exp\left(-\frac{\left(x_i-\mu_j\right)^2}{2\sigma_j^2} \right)
\quad j=1,\ldots,p, \quad i=1,\ldots,n.
\]](form_326.png)
Definition at line 102 of file STK_JointGaussianModel.h.
| typedef IMultiStatModel<Array, WColVector, JointGaussianParameters > STK::JointGaussianModel< Array, WColVector >::Base |
Base class.
Definition at line 112 of file STK_JointGaussianModel.h.
| typedef hidden::Traits<Array>::Col STK::JointGaussianModel< Array, WColVector >::ColVector |
Type of the column vector of the container.
Definition at line 110 of file STK_JointGaussianModel.h.
| typedef hidden::Traits<Array>::Row STK::JointGaussianModel< Array, WColVector >::RowVector |
Type of the row vector of the container.
Definition at line 108 of file STK_JointGaussianModel.h.
| typedef Array::Type STK::JointGaussianModel< Array, WColVector >::Type |
Type of the data contained in the container.
Definition at line 106 of file STK_JointGaussianModel.h.
|
inline |
default constructor.
Definition at line 116 of file STK_JointGaussianModel.h.
Referenced by STK::JointGaussianModel< Array, WColVector >::clone().
|
inline |
Constructor with data set.
Definition at line 118 of file STK_JointGaussianModel.h.
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
clone pattern.
Definition at line 126 of file STK_JointGaussianModel.h.
References STK::JointGaussianModel< Array, WColVector >::JointGaussianModel().
|
inlinevirtual |
compute the log Likelihood of an observation.
Definition at line 132 of file STK_JointGaussianModel.h.
References STK::Law::Normal::lpdf(), and STK::sum().
|
inlinevirtual |
compute the number of free parameters
Definition at line 129 of file STK_JointGaussianModel.h.
References STK::JointGaussianModel< Array, WColVector >::p_data().
|
inlineprotectedvirtual |
compute the parameters
Definition at line 141 of file STK_JointGaussianModel.h.
References STK::mean(), STK::JointGaussianModel< Array, WColVector >::p_data(), and STK::Stat::varianceWithFixedMean().
|
inlineprotectedvirtual |
compute the weighted parameters
Definition at line 150 of file STK_JointGaussianModel.h.
References STK::JointGaussianModel< Array, WColVector >::p_data(), and STK::Stat::varianceWithFixedMean().
|
inline |
Definition at line 152 of file STK_IMultiStatModel.h.
Referenced by STK::JointGaussianModel< Array, WColVector >::computeNbFreeParameters(), STK::JointGaussianModel< Array, WColVector >::computeParameters(), and STK::JointGaussianModel< Array, WColVector >::computeParameters().