English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Sampler: TRafuSampling.h Source File
Uranie / Sampler v4.9.0
/* @license-end */
TRafuSampling.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
61#ifndef TRAFUSAMPLING_H
62#define TRAFUSAMPLING_H
63
64#ifndef ROOT_TString
65#include "TString.h"
66#endif
67#ifndef ROOT_TList
68#include "TList.h"
69#endif
70#ifndef ROOT_TNamed
71#include "TNamed.h"
72#endif
73
74// Uranie
75#include "TSampler.h"
76#include "TAttribute.h"
77#include "TStochAttribut.h"
78#include "TPossibilityAttribute.h"
79#include "TDataServer.h"
80
81namespace URANIE
82{
83namespace Sampler
84{
86{
87 // Associations
88
89 // Attributes
90public:
101 Int_t _nPossib;
106 // Operations
107public:
108 //---------------------------------------------
112
114
132 TRafuSampling(URANIE::DataServer::TDataServer *tds, Option_t *option =
133 "proba=lhs, possib=random_sampling", Int_t sampleSize = 1000);
134
136 virtual ~TRafuSampling();
138
139 //---------------------------------------------
143
149
151
156 virtual void fillSunsetInputFile();
157
159
169 virtual TString buildProbabilityModule(
170 URANIE::DataServer::TStochasticAttribute *att,
171 const char *indentation);
172
174
184 virtual TString buildPossibilityModule(
185 URANIE::DataServer::TPossibilityAttribute *att,
186 const char *indentation);
188
189 //---------------------------------------------
193
194 virtual void createTuple();
195
197
203 void generateSample(Option_t *option = "");
205
206 //---------------------------------------------
210
214 virtual void printLog(Option_t *option = "");
216
217 ClassDef(URANIE::Sampler::TRafuSampling, ID_SAMPLER)
218 //Definition d'un plan d'exp�rience
219};
220
221} // Fin du namespace Sampler
222} // Fin du namespace URANIE
223#endif
224// fin du fichier $RCSfile$.
Creation of the abstract class TSampler.
Description of the class TRafuSampling.
Definition TRafuSampling.h:86
virtual TString buildPossibilityModule(URANIE::DataServer::TPossibilityAttribute *att, const char *indentation)
Generates the sunset module for the given TPossibilityAttribute.
virtual ~TRafuSampling()
Default destructor.
virtual void fillSunsetInputFile()
Constructs the input file for the Sunset software.
TList * _lstOfPossibilityAttributesToSample
The list of TPossibilityAttribute to sample.
Definition TRafuSampling.h:102
TString _sunsetSupFileName
Name of the sunset sup output file name.
Definition TRafuSampling.h:105
virtual TString buildProbabilityModule(URANIE::DataServer::TStochasticAttribute *att, const char *indentation)
Generates the sunset module for the given TStochasticAttribute.
virtual void createListOfPossibilityAttributes()
Creates the List of fuzzy attributes to sample
TString _sunsetInputFileName
Name of the sunset input file name.
Definition TRafuSampling.h:103
void generateSample(Option_t *option="")
Generates the sample.
virtual void createTuple()
Creates the TTree containing the generated sample.
Int_t _nPossib
number of TPossibilityAttribute to sample
Definition TRafuSampling.h:101
EPossibSampling
Definition TRafuSampling.h:96
@ kRandom
Definition TRafuSampling.h:97
@ kSampling1
Definition TRafuSampling.h:97
@ kSampling0
Definition TRafuSampling.h:97
EPossibSampling _nPossibSampling
The type of sampling for the possibility (random, 0, 1)
Definition TRafuSampling.h:100
TRafuSampling(URANIE::DataServer::TDataServer *tds, Option_t *option="proba=lhs, possib=random_sampling", Int_t sampleSize=1000)
EProbaSampling _nProbaSampling
The type of sampling for the probability (SRS, LHS)
Definition TRafuSampling.h:99
virtual void printLog(Option_t *option="")
Prints the log.
TString _sunsetInfFileName
Name of the sunset inf output file name.
Definition TRafuSampling.h:104
EProbaSampling
Definition TRafuSampling.h:92
@ kUnknown
Definition TRafuSampling.h:93
@ kLHS
Definition TRafuSampling.h:93
@ kSRS
Definition TRafuSampling.h:93
Abstraite class for sampling methods
Definition TSampler.h:97
Definition TAMHCopula.h:60