STK++ 0.9.13
|
Structure encapsulating the parameters of a Categorical_pjk model. More...
#include <STK_CategoricalParameters.h>
Public Member Functions | |
ModelParameters (int nbCluster) | |
default constructor | |
ModelParameters (ModelParameters const ¶m) | |
copy constructor. | |
~ModelParameters () | |
destructor | |
ModelParameters & | operator= (ModelParameters const ¶m) |
copy operator. | |
Real const & | proba (int k, int j, int l) const |
CVectorX | proba (int k, int j) const |
void | resize (Range const &rangeModalities, Range const &rangeCols) |
resize the set of parameter | |
void | updateStatistics () |
update statistics of the parameters. | |
void | setStatistics () |
set and release the computed statistics | |
void | releaseStatistics () |
Set the computed statistics. | |
template<class Array > | |
void | setParameters (ExprBase< Array > const ¶ms) |
Set the parameters of the mixture model. | |
Public Attributes | |
Array1D< CArrayXX > | proba_ |
array of size nbCluster with the probabilities of the variables | |
Array1D< Stat::Online< CArrayXX, Real > > | stat_proba_ |
Array of size nbCluster with the statistics of the probabilities. | |
Structure encapsulating the parameters of a Categorical_pjk model.
Definition at line 54 of file STK_CategoricalParameters.h.
STK::ModelParameters< Clust::Categorical_pjk_ >::ModelParameters | ( | int | nbCluster | ) |
default constructor
nbCluster | number of class of the mixture |
Definition at line 45 of file STK_CategoricalParameters.cpp.
STK::ModelParameters< Clust::Categorical_pjk_ >::ModelParameters | ( | ModelParameters< Clust::Categorical_pjk_ > const & | param | ) |
copy constructor.
param | the parameters to copy. |
Definition at line 50 of file STK_CategoricalParameters.cpp.
ModelParameters< Clust::Categorical_pjk_ > & STK::ModelParameters< Clust::Categorical_pjk_ >::operator= | ( | ModelParameters< Clust::Categorical_pjk_ > const & | param | ) |
copy operator.
param | the parameters to copy. |
Definition at line 56 of file STK_CategoricalParameters.cpp.
|
inline |
Definition at line 79 of file STK_CategoricalParameters.h.
|
inline |
Definition at line 77 of file STK_CategoricalParameters.h.
void STK::ModelParameters< Clust::Categorical_pjk_ >::releaseStatistics | ( | ) |
Set the computed statistics.
Definition at line 91 of file STK_CategoricalParameters.cpp.
void STK::ModelParameters< Clust::Categorical_pjk_ >::resize | ( | Range const & | rangeModalities, |
Range const & | rangeCols | ||
) |
resize the set of parameter
rangeModalities | range of the modalities |
rangeCols | range of the variables |
Definition at line 65 of file STK_CategoricalParameters.cpp.
|
inline |
Set the parameters of the mixture model.
It is assumed that the array params store for each class the proabiliteis on consecutive rows. The number of column of params is the number of variables.
Definition at line 100 of file STK_CategoricalParameters.h.
void STK::ModelParameters< Clust::Categorical_pjk_ >::setStatistics | ( | ) |
set and release the computed statistics
Definition at line 81 of file STK_CategoricalParameters.cpp.
void STK::ModelParameters< Clust::Categorical_pjk_ >::updateStatistics | ( | ) |
update statistics of the parameters.
Definition at line 75 of file STK_CategoricalParameters.cpp.
Array1D<CArrayXX> STK::ModelParameters< Clust::Categorical_pjk_ >::proba_ |
array of size nbCluster with the probabilities of the variables
Definition at line 57 of file STK_CategoricalParameters.h.
Array1D< Stat::Online<CArrayXX, Real> > STK::ModelParameters< Clust::Categorical_pjk_ >::stat_proba_ |
Array of size nbCluster with the statistics of the probabilities.
Definition at line 59 of file STK_CategoricalParameters.h.