41#if STK_MIXTURE_DEBUG | STK_MIXTURE_VERBOSE | STK_MIXTURE_VERY_VERBOSE
67 - (std::log(
param_.sigma2_[k]) +2.*Const::_LNSQRT2PI_)*
param_.dim_[k]/2.);
73#if STK_Kernel_DEBUG | STK_MIXTURE_VERBOSE
74 stk_cout <<
_T(
"Entering Kmm_sk::randomInit( CArrayXX const* const& p_tik, CPointX const* const& p_tk)\n");
79#ifdef STK_MIXTURE_VERY_VERBOSE
80 stk_cout <<
_T(
"Kmm_sk::randomInit( CArrayXX const* const& p_tik, CPointX const* const& p_tk) done\n");
88#if STK_Kernel_DEBUG | STK_MIXTURE_VERBOSE
89 stk_cout <<
_T(
"Entering Kmm_sk::run( CArrayXX const* const& p_tik, CPointX const* const& p_tk)\n");
92#ifdef STK_Kernel_DEBUG
96#ifdef STK_MIXTURE_VERBOSE
97 stk_cout <<
_T(
"Kmm_sk::run( CArrayXX const* const& p_tik, CPointX const* const& p_tk) done\n");
In this file we give the main mathematical constants.
This file define methods for displaying Arrays and Expressions.
In this file we define the Kmm_sk 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
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
Real rand(int i, int j, int k) const
The Gaussian mixture model Kmm_sk is an isotrope Gaussian mixture model on a kernel space.
int computeNbFreeParameters() const
Real lnComponentProbability(int i, int k) const
Kmm_sk(int nbCluster)
default constructor
void randomInit(CArrayXX const *const &p_tik, CPointX const *const &p_tk)
Initialize randomly the variances of the Gaussian kernel mixture.
bool run(CArrayXX const *const &p_tik, CPointX const *const &p_tk)
update the variances.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
Arrays::SumOp< Lhs, Rhs >::result_type sum(Lhs const &lhs, Rhs const &rhs)
convenience function for summing two arrays
double Real
STK fundamental type of Real values.
hidden::FunctorTraits< Derived, SumOp >::Row sumByCol(Derived const &A)
The namespace STK is the main domain space of the Statistical ToolKit project.
CArrayPoint< Real, UnknownSize, Arrays::by_col_ > CPointX