STK++ 0.9.13
STK_IClusterModelBase.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_Dot_org (see copyright for ...)
23*/
24
25/*
26 * Project: stkpp::Clustering
27 * created on: 16 oct. 2012
28 * Author: iovleff, S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
29 * Originally created by Parmeet Bhatia <b..._DOT_p..._AT_gmail_Dot_com>
30 **/
31
37#ifndef STK_ICLUSTERMODELBASE_H
38#define STK_ICLUSTERMODELBASE_H
39
40#include "STK_IStatModelBase.h"
41
44
45namespace STK
46{
76{
77 protected:
90
91 public:
94
96 inline int nbCluster() const { return nbCluster_;}
98 inline CPointX const& pk() const { return pk_;};
100 inline CVectorXi const& zi() const { return zi_;};
101
102 protected:
113};
114
115
116
117} // namespace STK
118
119#endif /* STK_ICLUSTERMODELBASE_H */
120
121
In this file we implement the final class CArrayPoint.
In this file we implement the final class CArrayVector.
In this file we define the interface base class IStatModelBase.
Base class for clustering models.
CPointX pk_
The proportions of each mixtures.
CPointX const & pk() const
void setNbCluster(int nbCluster)
set the number of cluster of the model
IClusterModelBase(int nbSample, int nbCluster)
Constructor.
IClusterModelBase(int nbCluster)
Constructor.
int nbCluster_
number of cluster.
IClusterModelBase(IClusterModelBase const &model)
copy constructor.
CVectorXi const & zi() const
virtual ~IClusterModelBase()
destructor
CVectorXi zi_
The zi class label.
Interface base class for all Statistical Models.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
The namespace STK is the main domain space of the Statistical ToolKit project.