STK++ 0.9.13
|
Structure encapsulating the parameters of a Categorical_pk 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< CVectorX > | proba_ |
array of size nbCluster with the probabilities of the variables | |
Array1D< Stat::Online< CVectorX, Real > > | stat_proba_ |
array of size nbCluster with the statistics of the probabilities | |
Structure encapsulating the parameters of a Categorical_pk model.
Definition at line 118 of file STK_CategoricalParameters.h.
STK::ModelParameters< Clust::Categorical_pk_ >::ModelParameters | ( | int | nbCluster | ) |
default constructor
nbCluster | the number of class of the mixture |
Definition at line 101 of file STK_CategoricalParameters.cpp.
STK::ModelParameters< Clust::Categorical_pk_ >::ModelParameters | ( | ModelParameters< Clust::Categorical_pk_ > const & | param | ) |
copy constructor.
param | the parameters to copy. |
Definition at line 106 of file STK_CategoricalParameters.cpp.
ModelParameters< Clust::Categorical_pk_ > & STK::ModelParameters< Clust::Categorical_pk_ >::operator= | ( | ModelParameters< Clust::Categorical_pk_ > const & | param | ) |
copy operator.
param | the parameters to copy. |
Definition at line 114 of file STK_CategoricalParameters.cpp.
|
inline |
Definition at line 144 of file STK_CategoricalParameters.h.
|
inline |
Definition at line 142 of file STK_CategoricalParameters.h.
void STK::ModelParameters< Clust::Categorical_pk_ >::releaseStatistics | ( | ) |
Set the computed statistics.
Definition at line 146 of file STK_CategoricalParameters.cpp.
void STK::ModelParameters< Clust::Categorical_pk_ >::resize | ( | Range const & | rangeModalities, |
Range const & | rangeCols | ||
) |
resize the set of parameter
rangeModalities | range of the modalities |
rangeCols | range of the variables (not used) |
Definition at line 122 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 shapes and scales parameters on two consecutive rows. The number of column of params is the number of variables.
Definition at line 165 of file STK_CategoricalParameters.h.
void STK::ModelParameters< Clust::Categorical_pk_ >::setStatistics | ( | ) |
set and release the computed statistics
Definition at line 137 of file STK_CategoricalParameters.cpp.
void STK::ModelParameters< Clust::Categorical_pk_ >::updateStatistics | ( | ) |
update statistics of the parameters.
Definition at line 131 of file STK_CategoricalParameters.cpp.
Array1D<CVectorX> STK::ModelParameters< Clust::Categorical_pk_ >::proba_ |
array of size nbCluster with the probabilities of the variables
Definition at line 121 of file STK_CategoricalParameters.h.
Array1D< Stat::Online<CVectorX, Real> > STK::ModelParameters< Clust::Categorical_pk_ >::stat_proba_ |
array of size nbCluster with the statistics of the probabilities
Definition at line 123 of file STK_CategoricalParameters.h.