Documentation / Developer's manual
Available modules
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  ![]() |
Uranie / Sampler
v4.10.0
|
#include <TSamplerField.h>


Public Member Functions | |
| void | SetRandomFunction (Int_t nind) |
| Int_t | GetRandomFunction () |
| void | SetIsotropy (Bool_t bval) |
| Bool_t | IsIsotropy () |
| void | SetVariance (Double_t dval) |
| Double_t | GetVariance () |
| void | SetScaleFactor (Double_t dval) |
| void | Draw2D (TString sx, TString sy, Option_t *opt="TRI2") |
Constructor and Destructor | |
| TSamplerField (URANIE::DataServer::TDataServer *tds, Option_t *option="Gauss", int nS=1) | |
| Constructor with a dataserver. More... | |
| virtual | ~TSamplerField () |
| Default destructor. More... | |
Generates the sample | |
| void | generateSample (Option_t *option="") |
| Generates the sample. More... | |
Treats the TAttributes | |
| void | createListOfAttributes () |
| Creates the List of attributes to simulate. More... | |
Setting and Getting attributs | |
| void | setMethod (TString str) |
| Sets the method given by the name. More... | |
| TString | getMethodName () |
| Returns the name of the method. More... | |
| void | setVariogram (TString str) |
| Sets the variogramm name. More... | |
| TString | getVariogramName () |
| Returns the name of the variogramm. More... | |
Printing Log | |
| virtual void | printLog (Option_t *option="") |
| Prints the log. More... | |
Public Member Functions inherited from URANIE::Sampler::TSamplerStochastic | |
| TSamplerStochastic (URANIE::DataServer::TDataServer *tds, Option_t *option, Int_t nCalcul) | |
| Constructor with a dataserver. More... | |
| virtual | ~TSamplerStochastic () |
| Default destructor. More... | |
| void | setSeed (Int_t ind=0) |
| Init the seed. More... | |
| Int_t | getSeed () |
| Returns the seed value. More... | |
Public Member Functions inherited from URANIE::Sampler::TSampler | |
| TSampler (URANIE::DataServer::TDataServer *tds, Option_t *option, Int_t nCalcul) | |
| Constructor with a TDataServer, the options and the size of the sample. More... | |
| virtual | ~TSampler () |
| Default destructor. More... | |
| Int_t | GetID () |
| Returns the ID of the class. More... | |
| void | setMethodName (TString str) |
| Sets the method name in a global variable. More... | |
| TString | getMethodName () |
| Gets the method name. More... | |
| virtual URANIE::DataServer::TDataServer * | getTDS () |
| Return the TDS filling by the sampling algorithm. More... | |
| void | parseOption (Option_t *option) |
| Parse the option. More... | |
| virtual void | createTuple () |
| Creates the TDSNtupleD of data with only the TStochasticAttributes. More... | |
| URANIE::DataServer::TDSNtupleD * | getTuple () |
| Returns the TDSNtupleD of data. More... | |
| virtual void | fillOtherAttributes () |
| Fills the TDSNtupleD of data with other TFormulaAttributes. More... | |
| void | setLog () |
| void | unsetLog () |
| void | changeLog () |
| Bool_t | getLog () |
Public Attributes | |
| Int_t | _nXSize |
| Int_t | _nYSize |
| Int_t | _nZSize |
| Int_t | _nRandomFunction |
| Number of basic random functions. More... | |
| Int_t | _nMethod |
| The method of simulation. More... | |
| Int_t | _nVariogram |
| The variogram type. More... | |
| Bool_t | _bIsotropy |
| Boolean to set Isotropy/ Anisotropy. More... | |
| Double_t | _dVariance |
| Variance. More... | |
| Double_t | _dSigma |
| Sigma. More... | |
| TVector3 | _vScaleFactor |
| Scale factor of the axis. More... | |
| Double_t | _valcrt |
Public Attributes inherited from URANIE::Sampler::TSampler | |
| Int_t | _nS |
| The size of the sample. More... | |
| Int_t | _nX |
| The size of attributes to sample. More... | |
| URANIE::DataServer::TDSNtupleD * | _ntsample |
| the tntuple of data More... | |
| TString | _sMethod |
| The title of the sampler method. More... | |
| Bool_t | _blog |
| Log Printing. More... | |
| Bool_t | _bupdateFile |
| Update the back up file when generating the attributeformula if there is some. More... | |
| URANIE::DataServer::TDataServer * | _tds |
| Pointer to a TDS. More... | |
| TList * | _lstOfAttributesToSample |
| The list of Stochastic Attributes to sample. More... | |
Protected Member Functions | |
| void | SpectralInit () |
| void | SpectralPrepare () |
| void | SpectralSimulate (unsigned int ievt) |
| void | VDC () |
Protected Member Functions inherited from URANIE::Sampler::TSamplerStochastic | |
| virtual void | init () |
| The preprocessing step. More... | |
| virtual void | terminate () |
| The post-processing step. More... | |
Protected Attributes | |
| TMatrixD | _vdc |
| TMatrixD | _ap |
| Matrix _nRandomFunction * 3. More... | |
| TVectorD | _scale |
| Matrix 3 * 3. More... | |
| TVectorD | _seed |
| Vector of the norms. More... | |
| TGraph2D * | _graph2D |
| Vectors of the seeds. More... | |
| vector< URANIE::DataServer::UEntry * > | in |
| Visu 2 D. More... | |
Protected Attributes inherited from URANIE::Sampler::TSamplerStochastic | |
| Int_t | _nSeed |
Member Enumeration Documentation
◆ SimulationMethod
|
private |
Constructor & Destructor Documentation
◆ TSamplerField()
| URANIE::Sampler::TSamplerField::TSamplerField | ( | URANIE::DataServer::TDataServer * | tds, |
| Option_t * | option = "Gauss", |
||
| int | nS = 1 |
||
| ) |
Constructor with a dataserver.
References URANIE::Sampler::TSampler::_blog, _dSigma, _graph2D, URANIE::Sampler::TSampler::_nS, URANIE::Sampler::TSampler::_nX, _nXSize, _nYSize, _nZSize, URANIE::Sampler::TSampler::_tds, createListOfAttributes(), SetIsotropy(), setMethod(), URANIE::Sampler::TSampler::setMethodName(), SetRandomFunction(), SetVariance(), and setVariogram().
◆ ~TSamplerField()
|
virtual |
Member Function Documentation
◆ createListOfAttributes()
|
virtual |
Creates the List of attributes to simulate.
Reimplemented from URANIE::Sampler::TSampler.
References URANIE::Sampler::TSampler::_blog, URANIE::Sampler::TSampler::_lstOfAttributesToSample, URANIE::Sampler::TSampler::_nX, and URANIE::Sampler::TSampler::_tds.
Referenced by TSamplerField().
◆ Draw2D()
| void URANIE::Sampler::TSamplerField::Draw2D | ( | TString | sx, |
| TString | sy, | ||
| Option_t * | opt = "TRI2" |
||
| ) |
◆ generateSample()
|
virtual |
Generates the sample.
Implements URANIE::Sampler::TSampler.
References URANIE::Sampler::TSampler::_blog, _nMethod, URANIE::Sampler::TSampler::_nS, URANIE::Sampler::TSampler::_ntsample, _nVariogram, URANIE::Sampler::TSampler::_tds, URANIE::Sampler::TSampler::createTuple(), URANIE::Sampler::TSampler::fillOtherAttributes(), getMethodName(), getVariogramName(), kGaussianVariogram, kSinusCardinalVariogram, kSpectralMethod, SpectralInit(), SpectralPrepare(), and SpectralSimulate().
◆ getMethodName()
| TString URANIE::Sampler::TSamplerField::getMethodName | ( | ) |
Returns the name of the method.
- Returns
- "Spectral Method"|"Dilution Method"|"Tessellation Method"|Turning Bands Method|"unknown Bands Method"|
References _nMethod, kDilutionMethod, kSpectralMethod, kTessellationMethod, and kTurningBandsMethod.
Referenced by generateSample().
◆ GetRandomFunction()
|
inline |
References _nRandomFunction.
◆ GetVariance()
|
inline |
References _dVariance.
◆ getVariogramName()
| TString URANIE::Sampler::TSamplerField::getVariogramName | ( | ) |
Returns the name of the variogramm.
- Returns
- "Spherical"|"Exponential"|"Stable"|"Hyperbolic"|"Gaussian"|"SineCardinal"
References _nVariogram, kExponentialVariogram, kGaussianVariogram, kHyperbolicVariogram, kSinusCardinalVariogram, kSphericalVariogram, and kStableVariogram.
Referenced by generateSample(), and setVariogram().
◆ IsIsotropy()
|
inline |
References _bIsotropy.
◆ printLog()
|
virtual |
Prints the log.
Reimplemented from URANIE::Sampler::TSamplerStochastic.
References _bIsotropy, _dSigma, _dVariance, _nMethod, _nRandomFunction, _nVariogram, _nXSize, _nYSize, _nZSize, URANIE::Sampler::TSampler::_sMethod, URANIE::Sampler::TSampler::GetID(), and URANIE::Sampler::TSamplerStochastic::printLog().
◆ SetIsotropy()
|
inline |
References _bIsotropy.
Referenced by TSamplerField().
◆ setMethod()
| void URANIE::Sampler::TSamplerField::setMethod | ( | TString | str | ) |
Sets the method given by the name.
- Parameters
-
str (TString) the method name ("spectral"|"dilution"|"tessellation"|"turningbands"| )
References _nMethod, kDilutionMethod, kSpectralMethod, kTessellationMethod, and kTurningBandsMethod.
Referenced by TSamplerField().
◆ SetRandomFunction()
|
inline |
References _nRandomFunction.
Referenced by TSamplerField().
◆ SetScaleFactor()
| void URANIE::Sampler::TSamplerField::SetScaleFactor | ( | Double_t | dval | ) |
References _vScaleFactor.
◆ SetVariance()
| void URANIE::Sampler::TSamplerField::SetVariance | ( | Double_t | dval | ) |
References _dVariance.
Referenced by TSamplerField().
◆ setVariogram()
| void URANIE::Sampler::TSamplerField::setVariogram | ( | TString | str | ) |
Sets the variogramm name.
- Parameters
-
str (TString) The name of variogramm ("spherical"|"exponential"|"stable"|"hyperbolic"|"gaussian"|"sine")
References _nVariogram, getVariogramName(), kExponentialVariogram, kGaussianVariogram, kHyperbolicVariogram, kSinusCardinalVariogram, kSphericalVariogram, and kStableVariogram.
Referenced by TSamplerField().
◆ SpectralInit()
|
protected |
References _ap, _bIsotropy, _dSigma, _dVariance, _nRandomFunction, _nVariogram, _scale, _seed, _vdc, _vScaleFactor, kGaussianVariogram, kSinusCardinalVariogram, and VDC().
Referenced by generateSample().
◆ SpectralPrepare()
|
protected |
References _ap, _nRandomFunction, _nVariogram, _scale, _seed, _vdc, kGaussianVariogram, and kSinusCardinalVariogram.
Referenced by generateSample().
◆ SpectralSimulate()
|
protected |
References _dSigma, _nRandomFunction, URANIE::Sampler::TSampler::_nS, URANIE::Sampler::TSampler::_ntsample, _nVariogram, _nXSize, _nYSize, _nZSize, _scale, _seed, URANIE::Sampler::TSampler::_tds, _valcrt, _vdc, in, kGaussianVariogram, and kSinusCardinalVariogram.
Referenced by generateSample().
◆ VDC()
|
protected |
References _nRandomFunction, _vdc, and m.
Referenced by SpectralInit().
Member Data Documentation
◆ _ap
|
protected |
Matrix _nRandomFunction * 3.
Referenced by SpectralInit(), and SpectralPrepare().
◆ _bIsotropy
| Bool_t URANIE::Sampler::TSamplerField::_bIsotropy |
Boolean to set Isotropy/ Anisotropy.
Referenced by IsIsotropy(), printLog(), SetIsotropy(), and SpectralInit().
◆ _dSigma
| Double_t URANIE::Sampler::TSamplerField::_dSigma |
Sigma.
Referenced by printLog(), SpectralInit(), SpectralSimulate(), and TSamplerField().
◆ _dVariance
| Double_t URANIE::Sampler::TSamplerField::_dVariance |
Variance.
Referenced by GetVariance(), printLog(), SetVariance(), and SpectralInit().
◆ _graph2D
|
protected |
Vectors of the seeds.
Referenced by Draw2D(), TSamplerField(), and ~TSamplerField().
◆ _nMethod
| Int_t URANIE::Sampler::TSamplerField::_nMethod |
The method of simulation.
Referenced by generateSample(), getMethodName(), printLog(), and setMethod().
◆ _nRandomFunction
| Int_t URANIE::Sampler::TSamplerField::_nRandomFunction |
Number of basic random functions.
Referenced by GetRandomFunction(), printLog(), SetRandomFunction(), SpectralInit(), SpectralPrepare(), SpectralSimulate(), and VDC().
◆ _nVariogram
| Int_t URANIE::Sampler::TSamplerField::_nVariogram |
The variogram type.
Referenced by generateSample(), getVariogramName(), printLog(), setVariogram(), SpectralInit(), SpectralPrepare(), and SpectralSimulate().
◆ _nXSize
| Int_t URANIE::Sampler::TSamplerField::_nXSize |
Referenced by printLog(), SpectralSimulate(), and TSamplerField().
◆ _nYSize
| Int_t URANIE::Sampler::TSamplerField::_nYSize |
Referenced by printLog(), SpectralSimulate(), and TSamplerField().
◆ _nZSize
| Int_t URANIE::Sampler::TSamplerField::_nZSize |
Referenced by printLog(), SpectralSimulate(), and TSamplerField().
◆ _scale
|
protected |
Matrix 3 * 3.
Referenced by SpectralInit(), SpectralPrepare(), and SpectralSimulate().
◆ _seed
|
protected |
Vector of the norms.
Referenced by SpectralInit(), SpectralPrepare(), and SpectralSimulate().
◆ _valcrt
| Double_t URANIE::Sampler::TSamplerField::_valcrt |
Referenced by SpectralSimulate().
◆ _vdc
|
protected |
Referenced by SpectralInit(), SpectralPrepare(), SpectralSimulate(), and VDC().
◆ _vScaleFactor
| TVector3 URANIE::Sampler::TSamplerField::_vScaleFactor |
Scale factor of the axis.
Referenced by SetScaleFactor(), and SpectralInit().
◆ in
|
protected |
Visu 2 D.
Referenced by SpectralSimulate(), and ~TSamplerField().

Public Member Functions inherited from