Documentation / Manuel développeur
Modules disponibles
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  ![]() |
Uranie / Sensitivity
v4.10.0
|
Description of the class TSobol. More...
#include <TSobol.h>


Public Types | |
| enum | ESamplerMethod { kSRS, kLHS, kqMCSobol, kqMCHalton } |
| list Of Enum More... | |
| enum | EMatrixMiNi { kMiNiSobol, kMiNiSaltelli } |
| enum | ESiAlgorithm { kSiSobol93 =0, kSiSaltelli02, kSiJansen99, kSiSumo10, kSiMartinez11, kSiOnlyNi =26, kSiAll =31 } |
| enum | EStiAlgorithm { kStiHomma96 =0, kStiSobol07, kStiJansen99, kStiSumo10, kStiMartinez11, kStiOnlyNi =25, kStiAll =31 } |
Public Types inherited from URANIE::Sensitivity::TSensitivity | |
| enum | ELauncher { kCode, kCodeRemote, kFunction, kRun, kUnknown } |
Public Member Functions | |
Constructor and Destructor | |
| TSobol () | |
| Default constructor. More... | |
| TSobol (URANIE::DataServer::TDataServer *tds, void(*fcn)(Double_t *, Double_t *), const char *varexpinput, const char *varexpoutput, Int_t ns, Option_t *option="") | |
| Default constructor with the TDataServer. More... | |
| TSobol (URANIE::DataServer::TDataServer *tds, const char *fcn, Int_t ns, const char *varexpinput, const char *varexpoutput, Option_t *option="") | |
| Default constructor with the TDataServer. More... | |
| TSobol (URANIE::DataServer::TDataServer *tds, const char *varexpinput, const char *varexpoutput, Option_t *option="") | |
| Default constructor with a TDataServer filling. More... | |
| TSobol (URANIE::DataServer::TDataServer *tds, URANIE::Launcher::TCode *fcode, Int_t ns, Option_t *option="") | |
| Default constructor with a tcode. More... | |
| TSobol (URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TRun *run, Int_t ns, Option_t *option="") | |
| Default constructor with a trun. More... | |
| virtual | ~TSobol () |
| Default destructor. More... | |
Constructor's helper | |
| void | initForRun (Option_t *option) |
Setting and Getting attributs | |
| void | createTuple (Option_t *option="") |
Generation of the sample | |
| virtual void | generateSample (Option_t *option="") |
| Generates all the matrix of sample. More... | |
| void | loadOtherSobolFile (const char *filename) |
| void | evaluateIndexes (Option_t *option="") |
| Evaluates the index from a Specific TDataServer. More... | |
Printing Log | |
| virtual void | printLog () |
Public Member Functions inherited from URANIE::Sensitivity::TSensitivity | |
| TSensitivity () | |
| Default constructor. More... | |
| TSensitivity (URANIE::DataServer::TDataServer *tds, const char *fcn, Int_t ns, const char *varexpinput="", const char *varexpoutput="", Option_t *option="") | |
| Default constructor with the name of a function. More... | |
| TSensitivity (URANIE::DataServer::TDataServer *tds, void(*fcn)(Double_t *, Double_t *), const char *varexpinput, const char *varexpoutput, Int_t ns, Option_t *option="") | |
| TSensitivity (URANIE::DataServer::TDataServer *tds, const char *varexpinput, const char *varexpoutput, Option_t *option="") | |
| Default constructor. More... | |
| TSensitivity (URANIE::DataServer::TDataServer *tds, URANIE::Launcher::TCode *code, Int_t ns, Option_t *option="") | |
| Default constructor with TCode arg. More... | |
| TSensitivity (URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TRun *run, Int_t ns, Option_t *option="") | |
| Default constructor with TRun arg. More... | |
| virtual | ~TSensitivity () |
| Default destructor. More... | |
| Int_t | getID () |
| virtual TTree * | getResultTuple (bool commonresulttuple=true) |
| Get the result ntuple (default parameter unused but for Morris method) More... | |
| double | getValue (const char *sorder="", const char *sinputname="", const char *sselect="") |
| vector< int > * | getAttributeElements (string str) |
| void | setFunction (void(*fct)(Double_t *, Double_t *), Int_t nx=-1, Int_t ny=1) |
| TString | getFunctionName () |
| void | setSeed (UInt_t nval) |
| UInt_t | getSeed () |
| virtual void | setMethodName (const char *str) |
| Set the Method name. More... | |
| const char * | getMethodName () |
| Get the method name. More... | |
| Bool_t | getNoIntermediateSaved () |
| Get the noIntermediateSaved flag. More... | |
| const char * | getIteratorName () |
| Get the name of the iterator attribut of the method. More... | |
| void | setSensitivityIteratorName (const char *str) |
| Set the iterator name devoted to compute sensitivity indexes. More... | |
| void | setTimeName (TString sname) |
| Set the name of the time attribute (only one) More... | |
| TString | getTimeName () |
| Get the name of the time attribute. More... | |
| virtual void | setDrawProgressBar (Bool_t bbool=kTRUE) |
| Set the "draw progress bar" flag. More... | |
| void | setUsingErrors (bool thebool) |
| Set the "using error results anyway" option. More... | |
| Bool_t | getDrawProgressBar () |
| Get the clean flag. More... | |
| Bool_t | isInputCorrelated () |
| TMatrixD | getMatrixInputCorrelation () |
| Int_t | getNInput () |
| Get the number of input attributes. More... | |
| Int_t | getNOutput () |
| Get the number of output attributes. More... | |
| void | setInputCorrelationMatrix (TMatrixD Corr) |
| void | checkOutputRequested (string attlist, bool fromoption=false) |
| Check the output list requested by the user. More... | |
| void | computeIndexes (Option_t *option="") |
| Compute the Sensitivity Indexes. More... | |
| void | fillIndex (const char *sinputname, const char *sorder, Double_t dval, const char *algo="", Double_t dvalCILower=-1.0, Double_t dvalCIUpper=-1.0) |
| Method to fill in the tree the value of Sensitivity indexes for an input attribute. More... | |
| virtual void | drawIndexes (TString sTitre, const char *select="", Option_t *option="") |
| Draws the indexes. More... | |
| virtual void | setLog () |
| void | unsetLog () |
| void | changeLog () |
| Bool_t | getLog () |
| virtual void | printLog (Option_t *option="") |
| void | setNLauncher (ELauncher codeLauncher) |
Public Attributes | |
Private and Public attributes | |
| Bool_t | _bWithSample |
| true if data are provided and used as full sample of 2 times ns samples More... | |
| Bool_t | _bWithData |
| true if data are provided and used as full sample of 2 times ns samples More... | |
| Bool_t | _bCVM |
| ESamplerMethod | _nSamplerMethod |
| The sampler method to generate the M and N matrix. More... | |
| EMatrixMiNi | _nMatrixMiNi |
| The method to generate the Min and/or Ni matrix (Sobol, Saltelli) More... | |
| ESiAlgorithm | _nSiAlgorithm |
| The algorithm to use to compute the first order algorithm. More... | |
| EStiAlgorithm | _nStiAlgorithm |
| The algorithm to use to compute the total order algorithm. More... | |
Method | |
The method needs two matrix M, N | |
| Int_t | _nSimPerIndex |
| The size of the two matrix M et N. More... | |
| Int_t | _nMethodComputed |
| number of method used More... | |
| TMatrixD | _matM |
| The matrix M. More... | |
| TMatrixD | _matN |
| The matrix M. More... | |
| TEventList * | _telm |
| TEventList * | _teln |
| m and n lit of event in the ntuple More... | |
| TMatrixD | _valN |
| TMatrixD | _valM |
| values of output for M and N matrix More... | |
| TMatrixD | _valSi |
| TMatrixD | _valSti |
| values of the first and total sobol indexes More... | |
| TMatrixD | _valMeanMN |
| TMatrixD | _valSigmaMN |
| complexe matrices to store the mean and variance of used M/N/Mi/Ni matrices More... | |
| vector< double > | _valMeanYN |
| vector< double > | _valMeanYM |
| vector< double > | _valVarYN |
| vector< double > | _valVarYM |
| URANIE::DataServer::TDSNtupleD * | _withdatantp |
| URANIE::DataServer::TDSNtupleD * | _preloadedntp |
| int * | _useless |
Public Attributes inherited from URANIE::Sensitivity::TSensitivity | |
| URANIE::DataServer::TDataServer * | _tds |
| Pointeur vers un TDS. More... | |
| TList * | _listOfInputAttributes |
| List of the input branches. More... | |
| TList * | _listOfOutputAttributes |
| List of the input branches. More... | |
| TString | _sTimeAttribute |
| The name of the Time attribute. More... | |
| Int_t | _nS |
| The number of simulation or other information depend on the used method. More... | |
| Int_t | _nX |
| Dimension of the input. More... | |
| UInt_t | _nY |
| Dimension of the target. More... | |
| UInt_t | _nElY |
| Number of element for one selected output. More... | |
| Int_t | _nbOut |
| Total number of Output to be considered. More... | |
| Int_t | _iOut |
| counter for output More... | |
| unsigned int | _iy |
| iterator over number of element More... | |
| unsigned int | _iely |
| iterator over number of element More... | |
| ELauncher | _nLauncher |
| The type of launcher. More... | |
| TString | _sFunctionName |
| The Name of the evaluatuor. More... | |
| URANIE::Launcher::TCode * | _code |
| The tcode. More... | |
| URANIE::Relauncher::TRun * | _run |
| TObjArray * | _drawingGarbageCollector |
| Garbage collector for prints. More... | |
| Int_t | _nSeed |
| The seed of the random generator. More... | |
| Bool_t | _bChosenOutputs |
| Fact that the input list is provided or not. More... | |
| Bool_t | _blog |
| Boolean for edit the log. More... | |
| Bool_t | _bquiet |
| Quiet mode. More... | |
| Bool_t | _bdrawProgressBar |
| Boolean to know if the progress bar has to be drawn. More... | |
| Bool_t | _bnoIntermediateSaved |
| Boolean to know if the progress bar has to be drawn. More... | |
| TString | _sIteratorName |
| The specific iterator attribute for the method. More... | |
| TString | _sMethodName |
| The method name. More... | |
| TString | _sSelectedOutput |
| The output. More... | |
| TString | _sSelectedInput |
| The input. More... | |
| map< string, unsigned int > | _mAttributeSize |
| Map of size of element for attribute;. More... | |
| map< string, vector< int > > | _mAttributeElements |
| Map of Elements number to run (if vector subselection is requested) More... | |
| vector< string > | _vOutputNames |
| Name of the output. More... | |
| TCanvas * | _canvas |
| Canvas object to deal with. More... | |
| void(* | _pFunction )(double *, double *) |
| TTree * | _ntresult |
| The TTree of results. More... | |
Protected Member Functions | |
| void | prepareSizePerIndex (Option_t *option="") |
Visualization and Scan the data | |
| void | initSample (Int_t ns, Option_t *option="") |
Parse the option | |
| virtual void | parseOption (Option_t *option="") |
| Read option specific to TSobol. More... | |
| void | preTreatment () |
| Resize matrices and fill many vector/matrice to avroid recompute stat too oftently. More... | |
Protected Member Functions inherited from URANIE::Sensitivity::TSensitivity | |
| virtual void | postTreatment () |
| PostTreatment for every output. More... | |
| void | setNoIntermediateSaved (Bool_t bbool=kTRUE) |
| Set the "only final file" flag. More... | |
| void | checkCanvasCreation (bool newcan) |
| Create a canvas if needed. More... | |
| void | drawIndexesHistogram (TString sTitre, const char *select="", Option_t *option="") |
| Draws indexes with an histogram. More... | |
| void | drawIndexesPie (TString sTitre, const char *select="", Option_t *option="") |
| Draws indexes with an pie chart. More... | |
Additional Inherited Members | |
Protected Attributes inherited from URANIE::Sensitivity::TSensitivity | |
| Char_t | _sOutputAttribute [MAXLENGTHSTRING] |
| The name of the output attribute. More... | |
| Char_t | _sInputAttribute [MAXLENGTHSTRING] |
| The name of the input attribute. More... | |
| Char_t | _sOrder [MAXLENGTHSTRING] |
| The order of sensitivity indexes. More... | |
| Char_t | _sMethod [MAXLENGTHSTRING] |
| The name of the method. More... | |
| Char_t | _sAlgorithm [MAXLENGTHSTRING] |
| The name of the algorithm to compute the index. More... | |
| Double_t | _valSobolCrt |
| The value of sensitivity indexes. More... | |
| Double_t | _valSobolCILower |
| The value of lower Condidence Interval (95) More... | |
| Double_t | _valSobolCIUpper |
| The value of upper Condidence Interval (95) More... | |
| TMatrixD | _minputCorr |
| Input correlation matrix if sample needs to be correlated. More... | |
| Bool_t | _bisInputCorrelated |
| State whether the input correlation matrix is set. More... | |
| Bool_t | _bgoingThroughError |
| State whether the error must not block the computation. More... | |
Detailed Description
Description of the class TSobol.
To be written by the developper.
Member Enumeration Documentation
◆ EMatrixMiNi
◆ ESamplerMethod
◆ ESiAlgorithm
◆ EStiAlgorithm
Constructor & Destructor Documentation
◆ TSobol() [1/6]
| URANIE::Sensitivity::TSobol::TSobol | ( | ) |
Default constructor.
Referenced by ClassImp().
◆ TSobol() [2/6]
| URANIE::Sensitivity::TSobol::TSobol | ( | URANIE::DataServer::TDataServer * | tds, |
| void(*)(Double_t *, Double_t *) | fcn, | ||
| const char * | varexpinput, | ||
| const char * | varexpoutput, | ||
| Int_t | ns, | ||
| Option_t * | option = "" |
||
| ) |
Default constructor with the TDataServer.
◆ TSobol() [3/6]
| URANIE::Sensitivity::TSobol::TSobol | ( | URANIE::DataServer::TDataServer * | tds, |
| const char * | fcn, | ||
| Int_t | ns, | ||
| const char * | varexpinput, | ||
| const char * | varexpoutput, | ||
| Option_t * | option = "" |
||
| ) |
Default constructor with the TDataServer.
◆ TSobol() [4/6]
| URANIE::Sensitivity::TSobol::TSobol | ( | URANIE::DataServer::TDataServer * | tds, |
| const char * | varexpinput, | ||
| const char * | varexpoutput, | ||
| Option_t * | option = "" |
||
| ) |
Default constructor with a TDataServer filling.
◆ TSobol() [5/6]
| URANIE::Sensitivity::TSobol::TSobol | ( | URANIE::DataServer::TDataServer * | tds, |
| URANIE::Launcher::TCode * | fcode, | ||
| Int_t | ns, | ||
| Option_t * | option = "" |
||
| ) |
Default constructor with a tcode.
◆ TSobol() [6/6]
| URANIE::Sensitivity::TSobol::TSobol | ( | URANIE::DataServer::TDataServer * | tds, |
| URANIE::Relauncher::TRun * | run, | ||
| Int_t | ns, | ||
| Option_t * | option = "" |
||
| ) |
Default constructor with a trun.
◆ ~TSobol()
|
virtual |
Default destructor.
Referenced by ClassImp().
Member Function Documentation
◆ createTuple()
|
virtual |
Reimplemented from URANIE::Sensitivity::TSensitivity.
Referenced by ClassImp().
◆ evaluateIndexes()
|
virtual |
Evaluates the index from a Specific TDataServer.
Implements URANIE::Sensitivity::TSensitivity.
Referenced by ClassImp().
◆ generateSample()
|
virtual |
Generates all the matrix of sample.
Implements URANIE::Sensitivity::TSensitivity.
Reimplemented in URANIE::Sensitivity::TCramerVonMises.
Referenced by ClassImp().
◆ initForRun()
| void URANIE::Sensitivity::TSobol::initForRun | ( | Option_t * | option | ) |
Referenced by ClassImp().
◆ initSample()
|
protected |
Referenced by ClassImp().
◆ loadOtherSobolFile()
| void URANIE::Sensitivity::TSobol::loadOtherSobolFile | ( | const char * | filename | ) |
Referenced by ClassImp().
◆ parseOption()
|
protectedvirtual |
Read option specific to TSobol.
Possible options specific to this methods are
- "srs": generate sample with SRS
- "lhs": generate sample with LHS
- "qmc=sobol": generate sample with QMC=SOBOL
- "qmc=halton": generate sample with QMC=HALTON
- "sobol/saltelli": use either the solbol or saltelli implementation (the second one is the default)
Reimplemented from URANIE::Sensitivity::TSensitivity.
Referenced by ClassImp().
◆ prepareSizePerIndex()
|
protected |
Referenced by ClassImp().
◆ preTreatment()
|
protectedvirtual |
Resize matrices and fill many vector/matrice to avroid recompute stat too oftently.
Reimplemented from URANIE::Sensitivity::TSensitivity.
Referenced by ClassImp().
◆ printLog()
|
virtual |
Referenced by ClassImp().
Member Data Documentation
◆ _bCVM
| Bool_t URANIE::Sensitivity::TSobol::_bCVM |
Referenced by ClassImp().
◆ _bWithData
| Bool_t URANIE::Sensitivity::TSobol::_bWithData |
true if data are provided and used as full sample of 2 times ns samples
Referenced by ClassImp().
◆ _bWithSample
| Bool_t URANIE::Sensitivity::TSobol::_bWithSample |
true if data are provided and used as full sample of 2 times ns samples
Referenced by ClassImp().
◆ _matM
| TMatrixD URANIE::Sensitivity::TSobol::_matM |
The matrix M.
Referenced by ClassImp().
◆ _matN
| TMatrixD URANIE::Sensitivity::TSobol::_matN |
The matrix M.
Referenced by ClassImp().
◆ _nMatrixMiNi
| EMatrixMiNi URANIE::Sensitivity::TSobol::_nMatrixMiNi |
The method to generate the Min and/or Ni matrix (Sobol, Saltelli)
Referenced by ClassImp().
◆ _nMethodComputed
| Int_t URANIE::Sensitivity::TSobol::_nMethodComputed |
number of method used
Referenced by ClassImp().
◆ _nSamplerMethod
| ESamplerMethod URANIE::Sensitivity::TSobol::_nSamplerMethod |
The sampler method to generate the M and N matrix.
Referenced by ClassImp().
◆ _nSiAlgorithm
| ESiAlgorithm URANIE::Sensitivity::TSobol::_nSiAlgorithm |
The algorithm to use to compute the first order algorithm.
Referenced by ClassImp().
◆ _nSimPerIndex
| Int_t URANIE::Sensitivity::TSobol::_nSimPerIndex |
The size of the two matrix M et N.
Referenced by ClassImp().
◆ _nStiAlgorithm
| EStiAlgorithm URANIE::Sensitivity::TSobol::_nStiAlgorithm |
The algorithm to use to compute the total order algorithm.
Referenced by ClassImp().
◆ _preloadedntp
| URANIE::DataServer::TDSNtupleD* URANIE::Sensitivity::TSobol::_preloadedntp |
Referenced by ClassImp().
◆ _telm
| TEventList* URANIE::Sensitivity::TSobol::_telm |
Referenced by ClassImp().
◆ _teln
| TEventList * URANIE::Sensitivity::TSobol::_teln |
m and n lit of event in the ntuple
Referenced by ClassImp().
◆ _useless
| int* URANIE::Sensitivity::TSobol::_useless |
◆ _valM
| TMatrixD URANIE::Sensitivity::TSobol::_valM |
values of output for M and N matrix
Referenced by ClassImp().
◆ _valMeanMN
| TMatrixD URANIE::Sensitivity::TSobol::_valMeanMN |
Referenced by ClassImp().
◆ _valMeanYM
| vector<double> URANIE::Sensitivity::TSobol::_valMeanYM |
Referenced by ClassImp().
◆ _valMeanYN
| vector<double> URANIE::Sensitivity::TSobol::_valMeanYN |
Referenced by ClassImp().
◆ _valN
| TMatrixD URANIE::Sensitivity::TSobol::_valN |
Referenced by ClassImp().
◆ _valSi
| TMatrixD URANIE::Sensitivity::TSobol::_valSi |
Referenced by ClassImp().
◆ _valSigmaMN
| TMatrixD URANIE::Sensitivity::TSobol::_valSigmaMN |
complexe matrices to store the mean and variance of used M/N/Mi/Ni matrices
Referenced by ClassImp().
◆ _valSti
| TMatrixD URANIE::Sensitivity::TSobol::_valSti |
values of the first and total sobol indexes
Referenced by ClassImp().
◆ _valVarYM
| vector<double> URANIE::Sensitivity::TSobol::_valVarYM |
Referenced by ClassImp().
◆ _valVarYN
| vector<double> URANIE::Sensitivity::TSobol::_valVarYN |
Referenced by ClassImp().
◆ _withdatantp
| URANIE::DataServer::TDSNtupleD* URANIE::Sensitivity::TSobol::_withdatantp |
Referenced by ClassImp().

Public Types inherited from