English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Sampler: TVQ.h Source File
Uranie / Sampler v4.9.0
/* @license-end */
TVQ.h
Go to the documentation of this file.
1
2// Copyright (C) 2013-2024 CEA/DES
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 published
6// by the Free Software Foundation, either version 3 of the License, or any
7// 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 License
15// along with this program. If not, see <http://www.gnu.org/licenses/>.
18// $Id$
19// $Author$
20// $Date$
21// $Revision$
22// $State$
24
33#ifndef TVQ_H
34#define TVQ_H
35
36// ROOT
37#include "TVector.h"
38
39// Uranie
40#include "TSamplerStochastic.h"
41#include "UMessageLogger.h"
42
56namespace URANIE
57{
58namespace Sampler
59{
61{
62 // Attributes
63protected:
64 // the mutable declaration is needed to use the logger in const methods
65 URANIE::DataServer::UMessageLogger *_fLogger; // message logger
67public:
68 TVector _vecindexorg;
69 URANIE::DataServer::TDataServer *_subtds;
70
71 Bool_t _bsaveall;
72 TString _sattributes;
73
74 // Methods
75public:
76 //---------------------------------------------
80
89 TVQ(URANIE::DataServer::TDataServer *tds, Option_t *option, Int_t ns);
91 virtual ~TVQ();
93
94 //---------------------------------------------
98
103 Bool_t getSaveAll()
104 {
105 return _bsaveall;
106 }
107
109
113 void setDrawProgressBar(Bool_t bbool = kTRUE)
114 {
115 _bdrawProgressBar = bbool;
116 }
117
119
123 {
124 return _bdrawProgressBar;
125 }
127
128 //---------------------------------------------
132
135 void shuffle();
137
138 //---------------------------------------------
143
148 URANIE::DataServer::TDataServer * getSubSample(Option_t *option = "");
150
151 //---------------------------------------------
160
161 virtual void init();
163 virtual void terminate();
165 virtual void learn(Int_t index) = 0;
167
168 //---------------------------------------------
172 virtual void printLog(Option_t *option = "");
174
175 ClassDef(URANIE::Sampler::TVQ, ID_SAMPLER)
176 //Classe abstraite de g�n�ration de plan d'exp�rience num�rique
177};
178
179} // Fin du namespace Sampler
180} // Fin du namespace URANIE
181#endif
182// fin du fichier $RCSfile$.
Creation of the abstract class TSamplerStochastic.
Definition TSamplerStochastic.h:44
Abstract class for Vectorial Quantification (VQ) algorithms.
Definition TVQ.h:61
URANIE::DataServer::UMessageLogger * _fLogger
Definition TVQ.h:65
Bool_t _bdrawProgressBar
Boolean to know if the progress bar has to be drawn.
Definition TVQ.h:66
virtual void terminate()
The post-processing step.
Definition TVQ.cxx:163
virtual void learn(Int_t index)=0
The learning step for a pattern.
TVector _vecindexorg
The vector of index of the database.
Definition TVQ.h:68
virtual ~TVQ()
Default destructor.
Definition TVQ.cxx:60
Bool_t _bsaveall
The boolean to save all the data in the learning (default = kFALSE)
Definition TVQ.h:71
URANIE::DataServer::TDataServer * _subtds
The subsampler returened by the getSubSample method.
Definition TVQ.h:69
virtual void init()
The pre-processing step.
Definition TVQ.cxx:118
URANIE::DataServer::TDataServer * getSubSample(Option_t *option="")
Generate the Sample and return the TDataServer.
Definition TVQ.cxx:205
void createListOfAttributes()
Creates the list of attributes to select patterns.
Definition TVQ.cxx:70
void shuffle()
shuffle the learning database (original TDataServer)
Definition TVQ.cxx:174
virtual void printLog(Option_t *option="")
Prints the log.
Definition TVQ.cxx:214
void setDrawProgressBar(Bool_t bbool=kTRUE)
Set the "draw progress bar" flag.
Definition TVQ.h:113
Bool_t getSaveAll()
Returns the flag SaveAll.
Definition TVQ.h:103
Bool_t getDrawProgressBar()
Get the clean flag.
Definition TVQ.h:122
TString _sattributes
the list of attributes
Definition TVQ.h:72
Definition TAMHCopula.h:60