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 <TImportanceSampling.h>


Public Types | |
| enum | EQuantileMethod { kQuantile1, kQuantile2, kQuantile3, kQuantile4, kQuantileUnknown } |
Public Member Functions | |
Constructor and Destructor | |
| TImportanceSampling (URANIE::DataServer::TDataServer *tds, TString xname, URANIE::DataServer::TStochasticAttribute *att, Int_t ns) | |
| Constructor. More... | |
| virtual | ~TImportanceSampling () |
| Destructor. More... | |
Setting and Getting global informations | |
| URANIE::DataServer::TDataServer * | getTDS () |
| This method returns the new tds build by the contructor of the object TIportanceSampling. More... | |
Compute Statistical parameters | |
| Double_t | computeMean (TString u) |
| This method computes the mean of the ouput attribut given in parameter. More... | |
| Double_t | computeStd (TString u) |
| This method computes and returns the stantard deviation of the ouput attribut given in parameter. More... | |
| Double_t | computeThreshold (TString u, Double_t dThreshold) |
| This method computes and returns the probability of threshold crossing of the ouput attribut given in parameter. More... | |
| Double_t | computeQuantile (TString sVar, Double_t dAlpha, EQuantileMethod nMethod=kQuantile2) |
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... | |
Printing Log | |
| void | setLog () |
| void | unsetLog () |
| void | changeLog () |
| Bool_t | getLog () |
| 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... | |
| 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 | |
| URANIE::DataServer::TDataServer * | _tds_IS |
| new tds build by the constructor More... | |
| URANIE::DataServer::TStochasticAttribute * | _x |
| attribut which be subsitute More... | |
| URANIE::DataServer::TStochasticAttribute * | _is_x |
| New law/attribut. More... | |
| Double_t | _mean |
| mean More... | |
| Double_t | _std |
| standart deviation More... | |
| Double_t | _proba |
| probability of threshold crossing More... | |
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 Attributes | |
| Bool_t | _blog |
| Boolean for edit the log. More... | |
| TSampling * | _sampling |
| THe TSampling object. More... | |
Protected Attributes inherited from URANIE::Sampler::TSamplerStochastic | |
| Int_t | _nSeed |
Additional Inherited Members | |
Protected Member Functions inherited from URANIE::Sampler::TSamplerStochastic | |
| virtual void | init () |
| The preprocessing step. More... | |
| virtual void | terminate () |
| The post-processing step. More... | |
Member Enumeration Documentation
◆ EQuantileMethod
Constructor & Destructor Documentation
◆ TImportanceSampling()
| URANIE::Sampler::TImportanceSampling::TImportanceSampling | ( | URANIE::DataServer::TDataServer * | tds, |
| TString | xname, | ||
| URANIE::DataServer::TStochasticAttribute * | att, | ||
| Int_t | ns | ||
| ) |
Constructor.
Referenced by ClassImp().
◆ ~TImportanceSampling()
|
virtual |
Destructor.
Referenced by ClassImp().
Member Function Documentation
◆ changeLog()
|
inline |
References _blog.
◆ computeMean()
| Double_t URANIE::Sampler::TImportanceSampling::computeMean | ( | TString | u | ) |
This method computes the mean of the ouput attribut given in parameter.
Return mean
- Parameters
-
u : name of the output attribut
Referenced by ClassImp().
◆ computeQuantile()
| Double_t URANIE::Sampler::TImportanceSampling::computeQuantile | ( | TString | sVar, |
| Double_t | dAlpha, | ||
| EQuantileMethod | nMethod = kQuantile2 |
||
| ) |
Return the \(\alpha\)-quantile of the attribute This method computes and returns the \(\alpha\)-quantile of the attribute given in parameter.
- Parameters
-
sVar : name of the attribute dAlpha : the parameter \(\alpha\).
Referenced by ClassImp().
◆ computeStd()
| Double_t URANIE::Sampler::TImportanceSampling::computeStd | ( | TString | u | ) |
This method computes and returns the stantard deviation of the ouput attribut given in parameter.
Return the standard deviation
- Parameters
-
u : name of the output attribut
Referenced by ClassImp().
◆ computeThreshold()
| Double_t URANIE::Sampler::TImportanceSampling::computeThreshold | ( | TString | u, |
| Double_t | dThreshold | ||
| ) |
This method computes and returns the probability of threshold crossing of the ouput attribut given in parameter.
Return the probability of threshold crossing
- Parameters
-
u : name of the output attribut, dThreshold : the threshold parameter
Referenced by ClassImp().
◆ createListOfAttributes()
|
virtual |
Creates the List of attributes to simulate.
Reimplemented from URANIE::Sampler::TSampler.
Referenced by ClassImp().
◆ generateSample()
|
virtual |
◆ getLog()
|
inline |
References _blog.
◆ getTDS()
|
inlinevirtual |
This method returns the new tds build by the contructor of the object TIportanceSampling.
Return the tds This tds is a copy of the iital tds where a attribut was replace by a new attribut which follows the new law given in parameter of the constructor. The inital attrinut replaced is attached to the new attribute.
Reimplemented from URANIE::Sampler::TSampler.
References _tds_IS.
◆ printLog()
|
virtual |
◆ setLog()
|
inline |
References _blog.
◆ unsetLog()
|
inline |
References _blog.
Member Data Documentation
◆ _blog
|
protected |
Boolean for edit the log.
Referenced by changeLog(), ClassImp(), getLog(), setLog(), and unsetLog().
◆ _is_x
| URANIE::DataServer::TStochasticAttribute* URANIE::Sampler::TImportanceSampling::_is_x |
New law/attribut.
Referenced by ClassImp().
◆ _mean
| Double_t URANIE::Sampler::TImportanceSampling::_mean |
mean
Referenced by ClassImp().
◆ _proba
| Double_t URANIE::Sampler::TImportanceSampling::_proba |
probability of threshold crossing
Referenced by ClassImp().
◆ _sampling
|
protected |
THe TSampling object.
Referenced by ClassImp().
◆ _std
| Double_t URANIE::Sampler::TImportanceSampling::_std |
standart deviation
Referenced by ClassImp().
◆ _tds_IS
| URANIE::DataServer::TDataServer* URANIE::Sampler::TImportanceSampling::_tds_IS |
new tds build by the constructor
Referenced by ClassImp(), and getTDS().
◆ _x
| URANIE::DataServer::TStochasticAttribute* URANIE::Sampler::TImportanceSampling::_x |
attribut which be subsitute
Referenced by ClassImp().

Public Member Functions inherited from