English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Sampler: TSpaceFilling.h Source File
Uranie / Sampler v4.9.0
/* @license-end */
TSpaceFilling.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 TSPACEFILLING_H
34#define TSPACEFILLING_H
73#include "TSamplerDeterminist.h"
74#include "TSequence.h"
75
76namespace URANIE
77{
78namespace Sampler
79{
81{
82
83 // Attributes
84public:
89private:
90 Int_t * _nValFreq; //[_nX] ///< The array of frequences
93
94 // Operations
95public:
96 //---------------------------------------------
100
101 TSpaceFilling(URANIE::DataServer::TDataServer *tds, Option_t *option,
102 Int_t nCalcul, EFunction = TSpaceFilling::kSaltelliA);
103
105 virtual ~TSpaceFilling();
107
108 //---------------------------------------------
112
113 void setSize(Int_t n)
114 {
115 _nS = n;
116 }
118 void setPermutation(Bool_t bpermute)
119 {
120 _bPermutation = bpermute;
121 }
124 {
125 return _bPermutation;
126 }
128
129 //---------------------------------------------
134
137 void setFrequencies(Int_t nfreq, Int_t *valfreq);
139 Int_t getFrequency(Int_t i)
140 {
141 return _nValFreq[i];
142 }
144
145 //---------------------------------------------
150
152 {
153 _nFunction = ntype;
154 }
157 {
158 return _nFunction;
159 }
161
162 //---------------------------------------------
166
171 virtual void generateSample(Option_t *option = "");
173
174 //---------------------------------------------
178
179 virtual void printLog(Option_t *option = "");
181
182 ClassDef(URANIE::Sampler::TSpaceFilling, ID_SAMPLER)
183 //Classe de g�n�ration par Space Filling
184};
185} // Fin du namespace Sampler
186} // Fin du namespace URANIE
187
188#endif
189// fin du fichier $RCSfile$.
Creation of the abstract class TSamplerDeterminist.
Definition TSamplerDeterminist.h:44
Int_t _nS
The size of the sample.
Definition TSampler.h:101
Description of a generation of sample by space filling (FAST).
Definition TSpaceFilling.h:81
TSpaceFilling(URANIE::DataServer::TDataServer *tds, Option_t *option, Int_t nCalcul, EFunction=TSpaceFilling::kSaltelliA)
Constructor from a TDataServer, the name of the method and the size of the sample.
EFunction getTransformFunction()
Gets the transform function.
Definition TSpaceFilling.h:156
void setDefaultFrequencies()
Sets the default frequencies by an algorithm.
virtual ~TSpaceFilling()
Default destructor.
Bool_t _bPermutation
the boolean to permute each attribute (default = kFALSE)
Definition TSpaceFilling.h:92
void setFrequencies(Int_t nfreq, Int_t *valfreq)
Sets the frequencies by an array.
EFunction _nFunction
The function G.
Definition TSpaceFilling.h:91
void setTransformFunction(EFunction ntype)
Sets the Transform fonction.
Definition TSpaceFilling.h:151
void setPermutation(Bool_t bpermute)
Set the permutation attribute.
Definition TSpaceFilling.h:118
void setSize(Int_t n)
Sets the size of the matrice.
Definition TSpaceFilling.h:113
EFunction
Definition TSpaceFilling.h:86
@ kSaltelliB
Definition TSpaceFilling.h:87
@ kCukier
Definition TSpaceFilling.h:87
@ kSaltelliA
Definition TSpaceFilling.h:87
Int_t getFrequency(Int_t i)
Returns the frequency.
Definition TSpaceFilling.h:139
virtual void printLog(Option_t *option="")
Prints the log.
Int_t * _nValFreq
Definition TSpaceFilling.h:90
Bool_t getPermutation()
Get the permutation attribute.
Definition TSpaceFilling.h:123
virtual void generateSample(Option_t *option="")
Generates the sample.
Definition TAMHCopula.h:60