English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Sampler: URANIE::Sampler::TSamplerField Class Reference
Uranie / Sampler v4.9.0
/* @license-end */
URANIE::Sampler::TSamplerField Class Reference

#include <TSamplerField.h>

Inheritance diagram for URANIE::Sampler::TSamplerField:
Collaboration diagram for URANIE::Sampler::TSamplerField:

Public Member Functions

Constructor and Destructor
 TSamplerField (URANIE::DataServer::TDataServer *tds, Option_t *option="Gauss", int nS=1)
 Constructor with a dataserver.
 
virtual ~TSamplerField ()
 Default destructor.
 
Generates the sample
void generateSample (Option_t *option="")
 Generates the sample.
 
Treats the TAttributes
void createListOfAttributes ()
 Creates the List of attributes to simulate.
 
Setting and Getting attributs
void setMethod (TString str)
 Sets the method given by the name.
 
TString getMethodName ()
 Returns the name of the method.
 
void setVariogram (TString str)
 Sets the variogramm name.
 
TString getVariogramName ()
 Returns the name of the variogramm.
 
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")
 
Printing Log
virtual void printLog (Option_t *option="")
 Prints the log.
 
- Public Member Functions inherited from URANIE::Sampler::TSamplerStochastic
 TSamplerStochastic (URANIE::DataServer::TDataServer *tds, Option_t *option, Int_t nCalcul)
 Constructor with a dataserver.
 
virtual ~TSamplerStochastic ()
 Default destructor.
 
void setSeed (Int_t ind=0)
 Init the seed.
 
Int_t getSeed ()
 Returns the seed value.
 
- 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.
 
virtual ~TSampler ()
 Default destructor.
 
Int_t GetID ()
 Returns the ID of the class.
 
void setMethodName (TString str)
 Sets the method name in a global variable.
 
TString getMethodName ()
 Gets the method name.
 
virtual URANIE::DataServer::TDataServer * getTDS ()
 Return the TDS filling by the sampling algorithm.
 
void parseOption (Option_t *option)
 Parse the option.
 
virtual void createTuple ()
 Creates the TDSNtupleD of data with only the TStochasticAttributes.
 
URANIE::DataServer::TDSNtupleD * getTuple ()
 Returns the TDSNtupleD of data.
 
virtual void fillOtherAttributes ()
 Fills the TDSNtupleD of data with other TFormulaAttributes.
 
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.
 
Int_t _nMethod
 The method of simulation.
 
Int_t _nVariogram
 The variogram type.
 
Bool_t _bIsotropy
 Boolean to set Isotropy/ Anisotropy.
 
Double_t _dVariance
 Variance.
 
Double_t _dSigma
 Sigma.
 
TVector3 _vScaleFactor
 Scale factor of the axis.
 
Double_t _valcrt
 
- Public Attributes inherited from URANIE::Sampler::TSampler
Int_t _nS
 The size of the sample.
 
Int_t _nX
 The size of attributes to sample.
 
URANIE::DataServer::TDSNtupleD * _ntsample
 the tntuple of data
 
TString _sMethod
 The title of the sampler method.
 
Bool_t _blog
 Log Printing.
 
Bool_t _bupdateFile
 Update the back up file when generating the attributeformula if there is some.
 
URANIE::DataServer::TDataServer * _tds
 Pointer to a TDS.
 
TList * _lstOfAttributesToSample
 The list of Stochastic Attributes to sample.
 

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.
 
virtual void terminate ()
 The post-processing step.
 

Protected Attributes

TMatrixD _vdc
 
TMatrixD _ap
 Matrix _nRandomFunction * 3.
 
TVectorD _scale
 Matrix 3 * 3.
 
TVectorD _seed
 Vector of the norms.
 
TGraph2D * _graph2D
 Vectors of the seeds.
 
vector< URANIE::DataServer::UEntry * > in
 Visu 2 D.
 
- Protected Attributes inherited from URANIE::Sampler::TSamplerStochastic
Int_t _nSeed
 

Private Types

enum  SimulationMethod {
  kSphericalVariogram , kExponentialVariogram , kStableVariogram , kHyperbolicVariogram ,
  kGaussianVariogram , kSinusCardinalVariogram , kSpectralMethod , kDilutionMethod ,
  kTessellationMethod , kTurningBandsMethod
}
 

Member Enumeration Documentation

◆ SimulationMethod

Enumerator
kSphericalVariogram 
kExponentialVariogram 
kStableVariogram 
kHyperbolicVariogram 
kGaussianVariogram 
kSinusCardinalVariogram 
kSpectralMethod 
kDilutionMethod 
kTessellationMethod 
kTurningBandsMethod 

Constructor & Destructor Documentation

◆ TSamplerField()

URANIE::Sampler::TSamplerField::TSamplerField ( URANIE::DataServer::TDataServer *  tds,
Option_t *  option = "Gauss",
int  nS = 1 
)

◆ ~TSamplerField()

URANIE::Sampler::TSamplerField::~TSamplerField ( )
virtual

Default destructor.

References _graph2D, and in.

Member Function Documentation

◆ createListOfAttributes()

void URANIE::Sampler::TSamplerField::createListOfAttributes ( )
virtual

◆ Draw2D()

void URANIE::Sampler::TSamplerField::Draw2D ( TString  sx,
TString  sy,
Option_t *  opt = "TRI2" 
)

◆ generateSample()

◆ 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()

Int_t URANIE::Sampler::TSamplerField::GetRandomFunction ( )
inline

References _nRandomFunction.

◆ GetVariance()

Double_t URANIE::Sampler::TSamplerField::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()

Bool_t URANIE::Sampler::TSamplerField::IsIsotropy ( )
inline

References _bIsotropy.

◆ printLog()

void URANIE::Sampler::TSamplerField::printLog ( Option_t *  option = "")
virtual

◆ SetIsotropy()

void URANIE::Sampler::TSamplerField::SetIsotropy ( Bool_t  bval)
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()

void URANIE::Sampler::TSamplerField::SetRandomFunction ( Int_t  nind)
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()

void URANIE::Sampler::TSamplerField::SpectralInit ( )
protected

◆ SpectralPrepare()

void URANIE::Sampler::TSamplerField::SpectralPrepare ( )
protected

◆ SpectralSimulate()

◆ VDC()

void URANIE::Sampler::TSamplerField::VDC ( )
protected

References _nRandomFunction, _vdc, and m.

Referenced by SpectralInit().

Member Data Documentation

◆ _ap

TMatrixD URANIE::Sampler::TSamplerField::_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

◆ _dVariance

Double_t URANIE::Sampler::TSamplerField::_dVariance

Variance.

Referenced by GetVariance(), printLog(), SetVariance(), and SpectralInit().

◆ _graph2D

TGraph2D* URANIE::Sampler::TSamplerField::_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

◆ _nVariogram

Int_t URANIE::Sampler::TSamplerField::_nVariogram

◆ _nXSize

Int_t URANIE::Sampler::TSamplerField::_nXSize

◆ _nYSize

Int_t URANIE::Sampler::TSamplerField::_nYSize

◆ _nZSize

Int_t URANIE::Sampler::TSamplerField::_nZSize

◆ _scale

TVectorD URANIE::Sampler::TSamplerField::_scale
protected

Matrix 3 * 3.

Referenced by SpectralInit(), SpectralPrepare(), and SpectralSimulate().

◆ _seed

TVectorD URANIE::Sampler::TSamplerField::_seed
protected

Vector of the norms.

Referenced by SpectralInit(), SpectralPrepare(), and SpectralSimulate().

◆ _valcrt

Double_t URANIE::Sampler::TSamplerField::_valcrt

Referenced by SpectralSimulate().

◆ _vdc

TMatrixD URANIE::Sampler::TSamplerField::_vdc
protected

◆ _vScaleFactor

TVector3 URANIE::Sampler::TSamplerField::_vScaleFactor

Scale factor of the axis.

Referenced by SetScaleFactor(), and SpectralInit().

◆ in

vector<URANIE::DataServer::UEntry*> URANIE::Sampler::TSamplerField::in
protected

Visu 2 D.

Referenced by SpectralSimulate(), and ~TSamplerField().