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.10.0
/* @license-end */
TSpaceFilling.h
Go to the documentation of this file.
1 // 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
35 
73 #include "TSamplerDeterminist.h"
74 #include "TSequence.h"
75 
76 namespace URANIE
77 {
78 namespace Sampler
79 {
81 {
82 
83  // Attributes
84 public:
85  enum EFunction
86  {
88  };
89 private:
90  Int_t * _nValFreq; //[_nX] ///< The array of frequences
92  Bool_t _bPermutation;
93 
94  // Operations
95 public:
96  //---------------------------------------------
100  TSpaceFilling(URANIE::DataServer::TDataServer *tds, Option_t *option,
102  Int_t nCalcul, EFunction = TSpaceFilling::kSaltelliA);
103 
105  virtual ~TSpaceFilling();
107 
108  //---------------------------------------------
112  void setSize(Int_t n)
114  {
115  _nS = n;
116  }
118  void setPermutation(Bool_t bpermute)
119  {
120  _bPermutation = bpermute;
121  }
123  Bool_t getPermutation()
124  {
125  return _bPermutation;
126  }
128 
129  //---------------------------------------------
134  void setDefaultFrequencies();
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  void setTransformFunction(EFunction ntype)
152  {
153  _nFunction = ntype;
154  }
157  {
158  return _nFunction;
159  }
161 
162  //---------------------------------------------
166 
171  virtual void generateSample(Option_t *option = "");
173 
174  //---------------------------------------------
178  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$.
Definition: TAMHCopula.h:59
Creation of the abstract class TSamplerDeterminist.
EFunction getTransformFunction()
Gets the transform function.
Definition: TSpaceFilling.h:156
void setDefaultFrequencies()
Sets the default frequencies by an algorithm.
void setPermutation(Bool_t bpermute)
Set the permutation attribute.
Definition: TSpaceFilling.h:118
Definition: TSpaceFilling.h:87
void setSize(Int_t n)
Sets the size of the matrice.
Definition: TSpaceFilling.h:113
Bool_t _bPermutation
the boolean to permute each attribute (default = kFALSE)
Definition: TSpaceFilling.h:92
virtual ~TSpaceFilling()
Default destructor.
EFunction _nFunction
The function G.
Definition: TSpaceFilling.h:91
Definition: TSpaceFilling.h:87
void setTransformFunction(EFunction ntype)
Sets the Transform fonction.
Definition: TSpaceFilling.h:151
EFunction
Definition: TSpaceFilling.h:85
Int_t * _nValFreq
Definition: TSpaceFilling.h:90
virtual void generateSample(Option_t *option="")
Generates the sample.
Description of a generation of sample by space filling (FAST).
Definition: TSpaceFilling.h:80
Int_t _nS
The size of the sample.
Definition: TSampler.h:101
virtual void printLog(Option_t *option="")
Prints the log.
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.
Definition: TSamplerDeterminist.h:43
void setFrequencies(Int_t nfreq, Int_t *valfreq)
Sets the frequencies by an array.
Int_t getFrequency(Int_t i)
Returns the frequency.
Definition: TSpaceFilling.h:139
Definition: TSpaceFilling.h:87
Bool_t getPermutation()
Get the permutation attribute.
Definition: TSpaceFilling.h:123