English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Sampler: TOATSampling.h Source File
Uranie / Sampler v4.9.0
/* @license-end */
TOATSampling.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 TOATSampling_H
35#define TOATSampling_H
72#include <iostream>
73using std::cout;
74using std::endl;
75
76#include "TSamplerDeterminist.h"
77#include "TSequence.h"
78
79#define dStepPrecision 1.0e-16
80
81
82namespace URANIE
83{
84namespace Sampler
85{
87{
88
89 // Attributes
90private:
91 Double_t _dstepSize;
92 TString _smode;
94
96
97 // Operations
98public:
99 //---------------------------------------------
103
116 TOATSampling(URANIE::DataServer::TDataServer *tds, Option_t *option =
117 "steps=1%");
118
120 virtual ~TOATSampling();
122
123 //---------------------------------------------
127
128 virtual Double_t getStepSizeParameter()
129 {
130 return _dstepSize;
131 }
133 virtual TString getSamplingMode()
134 {
135 return _smode;
136 }
139 virtual Bool_t isPercentMode()
140 {
141 return _bisPercent;
142 }
143
145
155 virtual void setOption(Option_t *option);
156
161 Double_t getStepPrecision() {
162 return _dStepPrecision;
163 }
164
165 void setStepPrecision(Double_t dval) {
166 _dStepPrecision = TMath::Max(0.0, dval);
167 }
168
170
171 //---------------------------------------------
175
176 virtual void createTuple();
177
179
186 virtual void generateSample(Option_t *option = "");
188
189 //---------------------------------------------
193
194 virtual void printLog(Option_t *option = "");
196
197 ClassDef(URANIE::Sampler::TOATSampling, ID_SAMPLER)
198};
199} // Fin du namespace Sampler
200} // Fin du namespace URANIE
201
202#endif
203// fin du fichier $RCSfile$.
Creation of the abstract class TSamplerDeterminist.
This class creates a "One factor At a Time" design of experiment. It has been developped mainly for f...
Definition TOATSampling.h:87
virtual void setOption(Option_t *option)
Set the step size parameter.
virtual void createTuple()
Create the data tree for the data server.
Double_t _dStepPrecision
Definition TOATSampling.h:95
virtual Double_t getStepSizeParameter()
Get the step size parameter.
Definition TOATSampling.h:128
virtual void generateSample(Option_t *option="")
Generates the sample.
virtual void printLog(Option_t *option="")
Prints the log.
void setStepPrecision(Double_t dval)
Definition TOATSampling.h:165
TString _smode
Definition TOATSampling.h:92
TOATSampling(URANIE::DataServer::TDataServer *tds, Option_t *option="steps=1%")
Constructor of the OAT sampler.
Double_t getStepPrecision()
getStepPrecision
Definition TOATSampling.h:161
virtual Bool_t isPercentMode()
Definition TOATSampling.h:139
Double_t _dstepSize
Definition TOATSampling.h:91
virtual ~TOATSampling()
Default destructor.
virtual TString getSamplingMode()
Get OAT sampling mode.
Definition TOATSampling.h:133
Bool_t _bisPercent
Definition TOATSampling.h:93
Definition TSamplerDeterminist.h:44
Definition TAMHCopula.h:60