mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
LearnMain.h
1 /***************************************************************************
2  SRC/mixmod/DiscriminantAnalysis/Learn/LearnMain.h description
3  copyright : (C) MIXMOD Team - 2001-2016
4  email : contact@mixmod.org
5  ***************************************************************************/
6 
7 /***************************************************************************
8  This file is part of MIXMOD
9 
10  MIXMOD is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  MIXMOD is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with MIXMOD. If not, see <http://www.gnu.org/licenses/>.
22 
23  All informations available on : http://www.mixmod.org
24 ***************************************************************************/
25 #ifndef XEMLEARNMAIN_H
26 #define XEMLEARNMAIN_H
27 
28 #include "mixmod/Utilities/Util.h"
29 
30 namespace XEM {
31 
32 // pre-declaration
33 class Input;
34 class LearnInput;
35 class LearnOutput;
36 class Model;
37 
45 class LearnMain {
46 
47 public:
48 
50  LearnMain();
51 
53  LearnMain(LearnInput * input, LearnOutput * output = NULL);
54 
56  virtual ~LearnMain();
57 
58 
59  // Accessor
60  LearnOutput * getLearnOutput() const;
61 
62  // get Input
63  Input * getInput();
64 
66  void run(int seed = -1);
67  void setOutputNull();
68 
69 private:
70 
71  // input container
72  LearnInput * _input;
73  // output container
74  LearnOutput * _output;
75 };
76 
77 inline LearnOutput * LearnMain::getLearnOutput() const {
78  return _output;
79 }
80 
81 inline void LearnMain::setOutputNull() {
82  _output = NULL;
83 }
84 
85 }
86 
87 #endif
void run(int seed=-1)
Run method.
Definition: LearnMain.cpp:70
LearnMain()
Default constructor.
Definition: LearnMain.cpp:47
virtual ~LearnMain()
Destructor.
Definition: LearnMain.cpp:61
Definition: LearnOutput.h:45
Constants definitions, various utilities to describe models, and others...
Definition: Input.h:44
Definition: LearnMain.h:45
Definition: LearnInput.h:39