STK++ 0.9.13
STK_IMixtureStrategy.cpp
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: 3 sept. 2013
28 * Author: iovleff, serge.iovleff@stkpp.org
29 **/
30
38
39namespace STK
40{
41
42/* default constructor.
43 * @param p_model the model to estimate
44 **/
46 : IRunnerBase(), nbTry_(1), p_model_(p_model), p_init_(0)
47{}
48/* copy constructor
49 * @param strategy the strategy to copy
50 **/
52 : IRunnerBase(strategy), nbTry_(strategy.nbTry_)
53 , p_model_(strategy.p_model_)
54 , p_init_(strategy.p_init_->clone())
55{}
56
57/* store a model in p_model_ if it is better.
58 * @param p_otherModel the model to store
59 **/
64
65/* destructor */
67
68
69} // namespace STK
70
71
72
In this file we define the abstract base class for mixture models.
In this file we define the interface base class for strategies to use in order to estimate a mixture ...
In this file we define the interface base class for initialization methods.
Base class for Mixture (composed) model.
Interface base class for all the strategies.
virtual ~IMixtureStrategy()
destructor
IMixtureStrategy(IMixtureComposer *&p_model)
default constructor.
void storeModel(IMixtureComposer *&p_otherModel)
store a model in p_model_ if it is better.
IMixtureInit * p_init_
initialization method
IMixtureComposer *& p_model_
reference on the main model
Abstract base class for all classes having a.
Definition STK_IRunner.h:65
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.