36#ifndef STK_CATEGORICALPARAMETERS_H
37#define STK_CATEGORICALPARAMETERS_H
39#include "../STK_Clust_Util.h"
77 inline Real const&
proba(
int k,
int j,
int l)
const {
return proba_[k](
l,
j);}
88 void updateStatistics();
92 void releaseStatistics();
103 for(
int k=proba_.begin(); k<proba_.end(); ++k)
105 for (
int l = proba_[k].beginRows();
l < proba_[k].endRows(); ++
l, ++
kp)
107 for (
int j = proba_[k].beginCols();
j < proba_[k].endCols(); ++
j)
142 inline Real const&
proba(
int k,
int j,
int l)
const {
return proba_[k][
l];}
153 void updateStatistics();
155 void setStatistics();
157 void releaseStatistics();
164 template<
class Array>
168 for(
int k=proba_.begin(); k<proba_.end(); ++k)
170 for (
int l = proba_[k].beginRows();
l < proba_[k].endRows(); ++
l, ++
kp)
175 proba_[k][
l] /= proba_[k].sizeCols();
In this file we define and implement the final class Array1D.
In this file we implement the final class CArrayVector.
In this file we implement the final class CArray.
This file contain the definition and implementation of the Online classes.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
Index sub-vector region: Specialization when the size is unknown.
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.
void setParameters(ExprBase< Array > const ¶ms)
Set the parameters of the mixture model.
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.
Real const & proba(int k, int j, int l) const
CVectorX proba(int k, int j) const
void setParameters(ExprBase< Array > const ¶ms)
Set the parameters of the mixture model.
Real const & proba(int k, int j, int l) const
CVectorX proba(int k, int j) const
Array1D< Stat::Online< CVectorX, Real > > stat_proba_
array of size nbCluster with the statistics of the probabilities
Array1D< CVectorX > proba_
array of size nbCluster with the probabilities of the variables
struct storing the parameters of the mixture.