STK++ 0.9.13
STK_Kmm_sk.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------*/
2/* Copyright (C) 2004-2016 Serge Iovleff
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this program; if not, write to the
16 Free Software Foundation, Inc.,
17 59 Temple Place,
18 Suite 330,
19 Boston, MA 02111-1307
20 USA
21
22 Contact : S..._DOT_I..._AT_stkpp.org (see copyright for ...)
23*/
24
25/*
26 * Project: stkpp::Clustering
27 * created on: Oct 24, 2014
28 * Author: Serge Iovleff
29 **/
30
35#ifndef STK_KMM_SK_H
36#define STK_KMM_SK_H
37
38#include "STK_KmmBase.h"
39
40namespace STK
41{
42
43//forward declaration, to allow for recursive template
44class Kmm_sk;
45
46namespace hidden
47{
50template<>
58
59} // namespace hidden
60
61
75class Kmm_sk: public KmmBase<Kmm_sk >
76{
77 public:
79
83 Kmm_sk( int nbCluster);
87 Kmm_sk( Kmm_sk const& model);
89 ~Kmm_sk();
90
92 int computeNbFreeParameters() const;
96 Real lnComponentProbability(int i, int k) const;
98 void randomInit( CArrayXX const* const& p_tik, CPointX const* const& p_tk);
100 bool run( CArrayXX const* const& p_tik, CPointX const* const& p_tk) ;
101};
102
103} // namespace STK
104
105#endif /* STK_KMM_SK_H */
In this file we define the KmmBase base class for Kernel Mixture.
hidden::Traits< CArray< Real, SizeRows_, SizeCols_, Orient_ > >::Type Type
Definition STK_CArray.h:137
Base class for the Gaussian Kernel Mixture Models.
Definition STK_KmmBase.h:54
The Gaussian mixture model Kmm_sk is an isotrope Gaussian mixture model on a kernel space.
Definition STK_Kmm_sk.h:76
int computeNbFreeParameters() const
KmmBase< Kmm_sk > Base
Definition STK_Kmm_sk.h:78
Real lnComponentProbability(int i, int k) const
~Kmm_sk()
destructor
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...
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.
ModelParameters< Clust::Kmm_sk_ > Parameters
Type of the structure storing the parameters of a Kmm_sk model.
Definition STK_Kmm_sk.h:56
Main class for the mixtures traits policy.