English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Sampler: TSamplerField.h Source File
Uranie / Sampler v4.9.0
/* @license-end */
TSamplerField.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 TSamplerField_H
34#define TSamplerField_H
35
37#include "TMatrixD.h"
38#include "TVectorD.h"
39#include "TVector3.h"
40#include "TGraph2D.h"
41
43#include "TSamplerStochastic.h"
44
45namespace URANIE
46{
47namespace Sampler
48{
50{
64
65protected:
66 TMatrixD _vdc;
67 TMatrixD _ap;
68 TVectorD _scale;
69 TVectorD _seed;
70 TGraph2D* _graph2D;
71 vector<URANIE::DataServer::UEntry*> in;
72
73public:
74 Int_t _nXSize;
75 Int_t _nYSize;
76 Int_t _nZSize;
78 Int_t _nMethod;
80 Bool_t _bIsotropy;
81 Double_t _dVariance;
82 Double_t _dSigma;
83 TVector3 _vScaleFactor;
84 Double_t _valcrt;
85protected:
86// virtual void createTuple();
87
88 // The spectral method of simulation
89 void SpectralInit();
90 void SpectralPrepare();
91 void SpectralSimulate(unsigned int ievt);
92
93 void VDC();
94
95public:
96 //---------------------------------------------
100
101 TSamplerField(URANIE::DataServer::TDataServer *tds, Option_t *option =
102 "Gauss", int nS=1);
104 virtual ~TSamplerField();
106
107 //---------------------------------------------
111
114 void generateSample(Option_t *option = "");
116
117 //---------------------------------------------
121
122 /*
123 In this case, the space is represented by TAttribute attributes.
124 */
127
128 //---------------------------------------------
132
136 void setMethod(TString str);
138
141 TString getMethodName();
142
144
147 void setVariogram(TString str);
149
152 TString getVariogramName();
153
155
156 // Setter and Getter
157 void SetRandomFunction(Int_t nind)
158 {
159 _nRandomFunction = nind;
160 }
162 {
163 return _nRandomFunction;
164 }
165 void SetIsotropy(Bool_t bval)
166 {
167 _bIsotropy = bval;
168 }
169 Bool_t IsIsotropy()
170 {
171 return _bIsotropy;
172 }
173 void SetVariance(Double_t dval);
174
175 Double_t GetVariance()
176 {
177 return _dVariance;
178 }
179 void SetScaleFactor(Double_t dval);
180
181 void Draw2D(TString sx, TString sy, Option_t* opt = "TRI2");
182
183// void AddAttribute(Option_t *option, URANIE::DataServer::TAttribute *att, Int_t ind = 100);
184
185 //---------------------------------------------
189 virtual void printLog(Option_t *option = "");
191
192 ClassDef(URANIE::Sampler::TSamplerField, ID_SAMPLER)
193 //Abstract class for generation of random design.
194};
195
196} // Fin du namespace Sampler
197} // Fin du namespace URANIE
198#endif
199// fin du fichier $RCSfile$.
Creation of the abstract class TSamplerStochastic.
Definition TSamplerField.h:50
void VDC()
Definition TSamplerField.cxx:234
virtual ~TSamplerField()
Default destructor.
Definition TSamplerField.cxx:171
Int_t _nMethod
The method of simulation.
Definition TSamplerField.h:78
TGraph2D * _graph2D
Vectors of the seeds.
Definition TSamplerField.h:70
TString getMethodName()
Returns the name of the method.
Definition TSamplerField.cxx:661
void SpectralSimulate(unsigned int ievt)
Definition TSamplerField.cxx:378
void setVariogram(TString str)
Sets the variogramm name.
Definition TSamplerField.cxx:686
void SetRandomFunction(Int_t nind)
Definition TSamplerField.h:157
Int_t _nXSize
Definition TSamplerField.h:74
void SetVariance(Double_t dval)
Definition TSamplerField.cxx:612
void SpectralInit()
Definition TSamplerField.cxx:299
Int_t _nZSize
Definition TSamplerField.h:76
Int_t _nVariogram
The variogram type.
Definition TSamplerField.h:79
Bool_t IsIsotropy()
Definition TSamplerField.h:169
Double_t GetVariance()
Definition TSamplerField.h:175
Int_t _nYSize
Definition TSamplerField.h:75
void SetScaleFactor(Double_t dval)
Definition TSamplerField.cxx:593
Double_t _dSigma
Sigma.
Definition TSamplerField.h:82
virtual void printLog(Option_t *option="")
Prints the log.
Definition TSamplerField.cxx:794
TVectorD _scale
Matrix 3 * 3.
Definition TSamplerField.h:68
SimulationMethod
Definition TSamplerField.h:52
@ kTurningBandsMethod
Definition TSamplerField.h:62
@ kSpectralMethod
Definition TSamplerField.h:59
@ kExponentialVariogram
Definition TSamplerField.h:54
@ kSinusCardinalVariogram
Definition TSamplerField.h:58
@ kStableVariogram
Definition TSamplerField.h:55
@ kGaussianVariogram
Definition TSamplerField.h:57
@ kSphericalVariogram
Definition TSamplerField.h:53
@ kDilutionMethod
Definition TSamplerField.h:60
@ kHyperbolicVariogram
Definition TSamplerField.h:56
@ kTessellationMethod
Definition TSamplerField.h:61
vector< URANIE::DataServer::UEntry * > in
Visu 2 D.
Definition TSamplerField.h:71
Double_t _valcrt
Definition TSamplerField.h:84
TMatrixD _ap
Matrix _nRandomFunction * 3.
Definition TSamplerField.h:67
TMatrixD _vdc
Definition TSamplerField.h:66
Int_t _nRandomFunction
Number of basic random functions.
Definition TSamplerField.h:77
Bool_t _bIsotropy
Boolean to set Isotropy/ Anisotropy.
Definition TSamplerField.h:80
TString getVariogramName()
Returns the name of the variogramm.
Definition TSamplerField.cxx:724
void generateSample(Option_t *option="")
Generates the sample.
Definition TSamplerField.cxx:528
void createListOfAttributes()
Creates the List of attributes to simulate.
Definition TSamplerField.cxx:187
TVectorD _seed
Vector of the norms.
Definition TSamplerField.h:69
void Draw2D(TString sx, TString sy, Option_t *opt="TRI2")
Definition TSamplerField.cxx:756
void SetIsotropy(Bool_t bval)
Definition TSamplerField.h:165
TVector3 _vScaleFactor
Scale factor of the axis.
Definition TSamplerField.h:83
Int_t GetRandomFunction()
Definition TSamplerField.h:161
void SpectralPrepare()
Definition TSamplerField.cxx:330
Double_t _dVariance
Variance.
Definition TSamplerField.h:81
void setMethod(TString str)
Sets the method given by the name.
Definition TSamplerField.cxx:631
Definition TSamplerStochastic.h:44
Definition TAMHCopula.h:60