English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Sampler: TOATSamplingMultiNominal.h Source File
Uranie / Sampler v4.9.0
/* @license-end */
TOATSamplingMultiNominal.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
34#ifndef TOATSamplingMultiNominal_H
35#define TOATSamplingMultiNominal_H
133#include <iostream>
134#include <map>
135
136#include "TSamplerStochastic.h"
137#include "TSequence.h"
138#include "TMap.h"
139
140namespace URANIE
141{
142namespace Sampler
143{
145{
146
147 // Attributes
148private:
149 TString _sMode;
150 TString _sGenMode;
151 Int_t _nNbModif;
154 URANIE::DataServer::TDSNtupleD* _nominalValueTuple;
155 Bool_t _bHasData;
156
157 // Operations
158protected:
159 //---------------------------------------------
168
178 virtual void init();
179
181 virtual void terminate()
182 {
183 }
185public:
186 //---------------------------------------------
190
209 TOATSamplingMultiNominal(URANIE::DataServer::TDataServer *tds,
210 TString mode = "regular", Int_t number = 2);
211
215
216 //---------------------------------------------
220
221 virtual Bool_t getHasData()
222 {
223 return _bHasData;
224 }
225
227 virtual Double_t getNumberOfModifications()
228 {
229 return _nNbModif;
230 }
231
233 virtual TString getSamplingMode()
234 {
235 return _sMode;
236 }
237
239 virtual TString getGenerationMode()
240 {
241 return _sGenMode;
242 }
243
245 virtual TList* getChangingAttList()
246 {
247 return &_changingAttList;
248 }
249
251 virtual TMap* getRangeInformation()
252 {
253 return &_infoRangeMap;
254 }
255
257 virtual URANIE::DataServer::TDSNtupleD* getNominalValueTuple()
258 {
259 return _nominalValueTuple;
260 }
261
263
278 virtual void setOption(TString mode, Int_t number);
279
281
304 void setRange(TString changingAttName, Double_t rangeValue,
305 Bool_t is_percent = kFALSE);
306
308
331 void setRange(TString changingAttName, TString rangeAttName,
332 Bool_t is_percent = kFALSE);
334
335 //---------------------------------------------
339
344 virtual void generateSample(Option_t *option = "");
346
347 //---------------------------------------------
351
355 virtual void printLog(Option_t *option = "");
357
359};
360} // Fin du namespace Sampler
361} // Fin du namespace URANIE
362
363#endif
364// fin du fichier $RCSfile$.
Creation of the abstract class TSamplerStochastic.
This class has been renamed. Please use TOATDesign instead.
Definition TOATSamplingMultiNominal.h:145
virtual Double_t getNumberOfModifications()
Get the number of modifications per attribute and nominal values.
Definition TOATSamplingMultiNominal.h:227
virtual TMap * getRangeInformation()
Get the list mapping the names of the changing attributes and their corresponding range information.
Definition TOATSamplingMultiNominal.h:251
virtual void printLog(Option_t *option="")
Prints the log.
TString _sMode
Sampling mode. So far, can be "random" or "regular".
Definition TOATSamplingMultiNominal.h:149
void setRange(TString changingAttName, Double_t rangeValue, Bool_t is_percent=kFALSE)
Set the range of the sampling for a changing attribute.
virtual void init()
Initialise the sampling procedure.
Int_t _nNbModif
Number of modification for each nominal value of each changing attribute.
Definition TOATSamplingMultiNominal.h:151
virtual URANIE::DataServer::TDSNtupleD * getNominalValueTuple()
Get the tuple storing the nominal values of the attributes.
Definition TOATSamplingMultiNominal.h:257
virtual TList * getChangingAttList()
Get the list of changing attributes.
Definition TOATSamplingMultiNominal.h:245
virtual void setOption(TString mode, Int_t number)
Set the sampling mode and number of modifications.
virtual void generateSample(Option_t *option="")
Generates the sample.
Bool_t _bHasData
Boolean value set to TRUE if the data server _tds contains data.
Definition TOATSamplingMultiNominal.h:155
TList _changingAttList
List of changing attributes.
Definition TOATSamplingMultiNominal.h:152
virtual Bool_t getHasData()
Returns TRUE if the internal data server contains data.
Definition TOATSamplingMultiNominal.h:221
TString _sGenMode
Data generation mode. Only used in the random mode context, can be "lhs", or "srs".
Definition TOATSamplingMultiNominal.h:150
virtual TString getGenerationMode()
Get random generation method.
Definition TOATSamplingMultiNominal.h:239
void setRange(TString changingAttName, TString rangeAttName, Bool_t is_percent=kFALSE)
Set the name of the attribute holding the range of the sampling for a changing attribute.
TOATSamplingMultiNominal(URANIE::DataServer::TDataServer *tds, TString mode="regular", Int_t number=2)
Constructor of the OAT sampler.
TMap _infoRangeMap
A list mapping the names of the changing attributes and their corresponding range information.
Definition TOATSamplingMultiNominal.h:153
virtual ~TOATSamplingMultiNominal()
Default destructor.
virtual TString getSamplingMode()
Get OAT sampling mode.
Definition TOATSamplingMultiNominal.h:233
URANIE::DataServer::TDSNtupleD * _nominalValueTuple
A tuple storing the nominal values of the attributes.
Definition TOATSamplingMultiNominal.h:154
virtual void terminate()
The post-processing step. Nothing is done.
Definition TOATSamplingMultiNominal.h:181
Definition TSamplerStochastic.h:44
Definition TAMHCopula.h:60