STK++ 0.9.13
STK_Kmm_s.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_S_H
36#define STK_KMM_S_H
37
38#include "STK_KmmBase.h"
39
40namespace STK
41{
42
43//forward declaration, to allow for recursive template
44class Kmm_s;
45
46namespace hidden
47{
50template<>
58
59} // namespace Clust
60
73class Kmm_s: public KmmBase<Kmm_s >
74{
75 public:
77
81 Kmm_s( int nbCluster);
85 Kmm_s( Kmm_s const& model);
87 ~Kmm_s();
88
90 int computeNbFreeParameters() const;
91
95 Real lnComponentProbability(int i, int k) const;
96
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_S_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_s is an isotrope Gaussian mixture model on a kernel space.
Definition STK_Kmm_s.h:74
void randomInit(CArrayXX const *const &p_tik, CPointX const *const &p_tk)
Initialize randomly the variances of the Gaussian kernel mixture.
Definition STK_Kmm_s.cpp:69
~Kmm_s()
destructor
Definition STK_Kmm_s.cpp:54
Real lnComponentProbability(int i, int k) const
Definition STK_Kmm_s.cpp:62
bool run(CArrayXX const *const &p_tik, CPointX const *const &p_tk)
update the variances.
Definition STK_Kmm_s.cpp:85
int computeNbFreeParameters() const
Definition STK_Kmm_s.cpp:56
KmmBase< Kmm_s > Base
Definition STK_Kmm_s.h:76
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_s_ > Parameters
Type of the structure storing the parameters of a Kmm_s model.
Definition STK_Kmm_s.h:56
Main class for the mixtures traits policy.