Documentation / Manuel développeur
Modules disponibles
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  
Uranie / Sampler v4.9.0
|
#include <TSamplerStochastic.h>
Public Member Functions | |
Constructor and Destructor | |
TSamplerStochastic (URANIE::DataServer::TDataServer *tds, Option_t *option, Int_t nCalcul) | |
Constructor with a dataserver. | |
virtual | ~TSamplerStochastic () |
Default destructor. | |
The Seed | |
void | setSeed (Int_t ind=0) |
Init the seed. | |
Int_t | getSeed () |
Returns the seed value. | |
Printing Log | |
virtual void | printLog (Option_t *option="") |
Prints the log. | |
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 | generateSample (Option_t *option="")=0 |
Generates the Sample. | |
virtual void | createListOfAttributes () |
Creates the List of attributes to simulate. | |
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 () |
Protected Member Functions | |
State machine | |
For the stochastic methods, two2 states can be created init and terminate which are executed just before the generation of the sample for the first one, and after the generation for the second one. They can be used for pre and post treatment purpose. | |
virtual void | init () |
The preprocessing step. | |
virtual void | terminate () |
The post-processing step. | |
Protected Attributes | |
Int_t | _nSeed |
Additional Inherited Members | |
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. | |
Constructor & Destructor Documentation
◆ TSamplerStochastic()
URANIE::Sampler::TSamplerStochastic::TSamplerStochastic | ( | URANIE::DataServer::TDataServer * | tds, |
Option_t * | option, | ||
Int_t | nCalcul | ||
) |
Constructor with a dataserver.
References setSeed().
◆ ~TSamplerStochastic()
|
virtual |
Default destructor.
Member Function Documentation
◆ getSeed()
|
inline |
◆ init()
|
protectedvirtual |
The preprocessing step.
Reimplemented in URANIE::Sampler::TGaussianSampling, URANIE::Sampler::TNeuralGas, URANIE::Sampler::TOA, URANIE::Sampler::TOATDesign, URANIE::Sampler::TOATSamplingMultiNominal, and URANIE::Sampler::TVQ.
References URANIE::Sampler::TSampler::_blog, URANIE::Sampler::TSampler::_lstOfAttributesToSample, _nSeed, and URANIE::Sampler::TSampler::_tds.
Referenced by ClassImp(), ClassImp(), ClassImp(), and URANIE::Sampler::TBasicSampling::generateSample().
◆ printLog()
|
virtual |
Prints the log.
Reimplemented from URANIE::Sampler::TSampler.
Reimplemented in URANIE::Sampler::TAMHCopula, URANIE::Sampler::TArchimedianCopula, URANIE::Sampler::TBasicSampling, URANIE::Sampler::TClaytonCopula, URANIE::Sampler::TConstrLHS, URANIE::Sampler::TCopula, URANIE::Sampler::TEllipticalCopula, URANIE::Sampler::TFrankCopula, URANIE::Sampler::TGaussianCopula, URANIE::Sampler::TGaussianSampling, URANIE::Sampler::TImportanceSampling, URANIE::Sampler::TMaxiMinLHS, URANIE::Sampler::TNeuralGas, URANIE::Sampler::TOA, URANIE::Sampler::TOATDesign, URANIE::Sampler::TOATSamplingMultiNominal, URANIE::Sampler::TPlackettCopula, URANIE::Sampler::TSamplerField, URANIE::Sampler::TSampling, and URANIE::Sampler::TVQ.
References _nSeed, URANIE::Sampler::TSampler::GetID(), and URANIE::Sampler::TSampler::printLog().
Referenced by ClassImp(), and URANIE::Sampler::TSamplerField::printLog().
◆ setSeed()
void URANIE::Sampler::TSamplerStochastic::setSeed | ( | Int_t | ind = 0 | ) |
Init the seed.
If the value is zero, the seed is initialized with the hour in milliseconds
- Parameters
-
ind (Int_t) the seed value
References _nSeed.
Referenced by ClassImp(), ClassImp(), and TSamplerStochastic().
◆ terminate()
|
protectedvirtual |
The post-processing step.
Reimplemented in URANIE::Sampler::TGaussianSampling, URANIE::Sampler::TOATDesign, URANIE::Sampler::TOATSamplingMultiNominal, and URANIE::Sampler::TVQ.
References URANIE::Sampler::TSampler::_blog.
Member Data Documentation
◆ _nSeed
|
protected |
Referenced by ClassImp(), URANIE::Sampler::TNeuralGas::generateSample(), getSeed(), init(), printLog(), and setSeed().