57{
return param_.dim_.sum() + 1;}
65 - (std::log(
param_.sigma2_)+2.*Const::_LNSQRT2PI_)*
param_.dim_[k]/2.);
71#if STK_Kernel_DEBUG | STK_MIXTURE_VERBOSE
72 stk_cout <<
_T(
"Entering Kmm_s::randomInit( CArrayXX const* const& p_tik, CPointX const* const& p_tk)\n");
77 + std::abs(Law::generator.randGauss(0, 0.05));
78#ifdef STK_MIXTURE_VERBOSE
79 stk_cout <<
_T(
"Kmm_s::randomInit( CArrayXX const* const& p_tik, CPointX const* const& p_tk) done\n");
87#if STK_Kernel_DEBUG | STK_MIXTURE_VERBOSE
88 stk_cout <<
_T(
"Entering Kmm_s::run( CArrayXX const* const& p_tik, CPointX const* const& p_tk)\n");
92#ifdef STK_MIXTURE_VERBOSE
93 stk_cout <<
_T(
"Kmm_s::run( CArrayXX const* const& p_tik, CPointX const* const& p_tk) done\n");
In this file we give the main mathematical constants.
In this file we define the Kmm_s class.
In this file we define the Normal probability law class.
This file contain the functors computings statistics.
#define stk_cout
Standard stk output stream.
#define _T(x)
Let x unmodified.
hidden::OperatorSelector< Derived, Rhs, Arrays::productOp_ >::Result const prod(ExprBase< Rhs > const &other) const
hidden::Promote< Type, typenameRhs::Type >::result_type const dot(ExprBase< Rhs > const &other) const
CArrayXX dik_
Array of the intermediate results dik.
Parameters param_
parameters of the derived mixture model.
void compute_dik(CArrayXX const *p_tik, CPointX const *p_tk)
compute the distance of the ith individual to the kth centroid
The Gaussian mixture model Kmm_s is an isotrope Gaussian mixture model on a kernel space.
void randomInit(CArrayXX const *const &p_tik, CPointX const *const &p_tk)
Initialize randomly the variances of the Gaussian kernel mixture.
Real lnComponentProbability(int i, int k) const
Kmm_s(int nbCluster)
default constructor
bool run(CArrayXX const *const &p_tik, CPointX const *const &p_tk)
update the variances.
int computeNbFreeParameters() const
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.