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


Public Member Functions | |
Constructor and Destructor | |
| TDGSM () | |
| Default constructor. More... | |
| TDGSM (TDataServer *tdsNominal, void(*fcn)(Double_t *, Double_t *), Int_t ns, TString sensitiveAtt, TString outputAtt, TString samplingOption="steps=1%") | |
| Constructor with the TDataServer and function. More... | |
| TDGSM (TDataServer *tdsNominal, const char *fcn, Int_t ns, TString sensitiveAtt, TString outputAtt, TString samplingOption) | |
| Constructor with the TDataServer and function name. More... | |
| TDGSM (TDataServer *tdsNominal, URANIE::Launcher::TCode *fcode, Int_t ns, TString sensitiveAtt="", TString samplingOption="steps=1%") | |
| Constructor with the TDataServer and a TCode. More... | |
| TDGSM (TDataServer *tdsNominal, URANIE::Relauncher::TRun *run, Int_t ns, TString sensitiveAtt="", TString samplingOption="steps=1%") | |
| Constructor with the TDataServer and a TRun. More... | |
| TDGSM (TDataServer *tdsNominal, TString inputAtt, TString outputAtt, TString sensitiveAtt=TString("")) | |
| Constructor with a loaded data server. More... | |
| virtual | ~TDGSM () |
| Default destructor. More... | |
Setting and Getting attributs | |
| virtual Double_t | getStepSizeParameter () |
| Get the step size parameter. More... | |
| TMatrixD | getSensitivityMatrix () |
| Returns the sensitivity matrix. More... | |
| TDataServer * | getDataServer () |
| Returns a pointer to the internal data server. More... | |
Generation of the sample | |
| virtual void | generateSample (Option_t *option="") |
| Generates the OAT sampling. More... | |
| void | generateSampleByOATDesign (Option_t *option="") |
| void | initSample (Int_t ns, Option_t *option="") |
| initSample More... | |
| virtual void | parseOption (Option_t *option="") |
| Read the possible options. More... | |
Compute the indexes | |
| void | evaluateIndexes (Option_t *option="") |
| Compute the sensitivity matrix. More... | |
Printing Log | |
| virtual void | printLog () |
| printLog More... | |
Public Member Functions inherited from URANIE::Sensitivity::TFiniteDifferences | |
| TFiniteDifferences () | |
| Default constructor. More... | |
| TFiniteDifferences (TDataServer *tdsNominal, void(*fcn)(Double_t *, Double_t *), TString sensitiveAtt, TString outputAtt, TString samplingOption="steps=1%") | |
| Constructor with the TDataServer and function. More... | |
| TFiniteDifferences (TDataServer *tdsNominal, const char *fcn, TString sensitiveAtt, TString outputAtt, TString samplingOption) | |
| Constructor with the TDataServer and function name. More... | |
| TFiniteDifferences (TDataServer *tdsNominal, URANIE::Launcher::TCode *fcode, TString sensitiveAtt="", TString samplingOption="steps=1%") | |
| Constructor with the TDataServer and code. More... | |
| TFiniteDifferences (TDataServer *tdsNominal, URANIE::Relauncher::TRun *run, TString sensitiveAtt="", TString samplingOption="steps=1%") | |
| Constructor with the TDataServer and TRun. More... | |
| TFiniteDifferences (TDataServer *tdsNominal, TString inputAtt, TString outputAtt, TString sensitiveAtt=TString("")) | |
| Constructor with a loaded data server. More... | |
| virtual | ~TFiniteDifferences () |
| Default destructor. More... | |
| TFiniteDifferences () | |
| Default constructor. More... | |
| TFiniteDifferences (TDataServer *tdsNominal, void *fcn, TString sensitiveAtt, TString ranges, TString inputAtt, TString outputAtt) | |
| Constructor with the TDataServer and function. More... | |
| TFiniteDifferences (TDataServer *tdsNominal, URANIE::Launcher::TCode *fcode, TString sensitiveAtt, TString ranges) | |
| Constructor with the TDataServer and code. More... | |
| TFiniteDifferences (TDataServer *tdsNominal, TString sensitiveAtt, TString inputAtt, TString outputAtt) | |
| Constructor with a loaded data server. More... | |
| virtual | ~TFiniteDifferences () |
| Default destructor. More... | |
| TMatrixD | getSensitivityMatrix () |
| Returns the sensitivity matrix. More... | |
| TDataServer * | getDataServer () |
| Returns a pointer to the internal data server. More... | |
| TMatrixD | getSensitivityMatrix () |
| Returns the sensitivity matrix. More... | |
| TDataServer * | getOATDataServer () |
| Returns a pointer to the internal data server. More... | |
| void | evaluateIndexes (Option_t *option="") |
| Compute the sensitivity matrix. More... | |
| void | preTreatment () |
| Resize the matrix results at the very beginning of the algo to the number of output/input. More... | |
| void | computeIndexes (Option_t *option="") |
| Compute the sensitivity matrix. More... | |
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 | createTuple (Option_t *option="") |
| 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) |
Additional Inherited Members | |
Public Types inherited from URANIE::Sensitivity::TSensitivity | |
| enum | ELauncher { kCode, kCodeRemote, kFunction, kRun, kUnknown } |
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 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... | |
Protected Attributes inherited from URANIE::Sensitivity::TFiniteDifferences | |
| TMatrixD | _sMatrix |
| The sensitivity matrix. More... | |
| TString | _sSensitiveAtt |
| The list of sensitive attributes. More... | |
| TString | _sSamplingOption |
| the options for the OAT sampling More... | |
| Int_t | _nbIn |
| the number of sensitive inputs More... | |
| Int_t | _nbAux |
| the number of non sensitive inputs More... | |
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 TDGSM.
Constructor & Destructor Documentation
◆ TDGSM() [1/6]
| URANIE::Sensitivity::TDGSM::TDGSM | ( | ) |
Default constructor.
◆ TDGSM() [2/6]
| URANIE::Sensitivity::TDGSM::TDGSM | ( | TDataServer * | tdsNominal, |
| void(*)(Double_t *, Double_t *) | fcn, | ||
| Int_t | ns, | ||
| TString | sensitiveAtt, | ||
| TString | outputAtt, | ||
| TString | samplingOption = "steps=1%" |
||
| ) |
Constructor with the TDataServer and function.
- Parameters
-
tdsNominal sensitiveAtt outputAtt samplingOption
◆ TDGSM() [3/6]
| URANIE::Sensitivity::TDGSM::TDGSM | ( | TDataServer * | tdsNominal, |
| const char * | fcn, | ||
| Int_t | ns, | ||
| TString | sensitiveAtt, | ||
| TString | outputAtt, | ||
| TString | samplingOption | ||
| ) |
Constructor with the TDataServer and function name.
- Parameters
-
tdsNominal fcn sensitiveAtt outputAtt samplingOption
◆ TDGSM() [4/6]
| URANIE::Sensitivity::TDGSM::TDGSM | ( | TDataServer * | tdsNominal, |
| URANIE::Launcher::TCode * | fcode, | ||
| Int_t | ns, | ||
| TString | sensitiveAtt = "", |
||
| TString | samplingOption = "steps=1%" |
||
| ) |
Constructor with the TDataServer and a TCode.
- Parameters
-
tdsNominal fcode sensitiveAtt samplingOption
◆ TDGSM() [5/6]
| URANIE::Sensitivity::TDGSM::TDGSM | ( | TDataServer * | tdsNominal, |
| URANIE::Relauncher::TRun * | run, | ||
| Int_t | ns, | ||
| TString | sensitiveAtt = "", |
||
| TString | samplingOption = "steps=1%" |
||
| ) |
Constructor with the TDataServer and a TRun.
- Parameters
-
tdsNominal run sensitiveAtt samplingOption
◆ TDGSM() [6/6]
| URANIE::Sensitivity::TDGSM::TDGSM | ( | TDataServer * | tdsNominal, |
| TString | inputAtt, | ||
| TString | outputAtt, | ||
| TString | sensitiveAtt = TString("") |
||
| ) |
Constructor with a loaded data server.
- Parameters
-
tdsNominal inputAtt outputAtt sensitiveAtt
◆ ~TDGSM()
|
virtual |
Default destructor.
Member Function Documentation
◆ evaluateIndexes()
|
virtual |
◆ generateSample()
|
inlinevirtual |
Generates the OAT sampling.
This function fills a TDS with appropriate variables, creates and uses a TOATSampling to generate the design of experiment.
- Parameters
-
option (Option_t *) just in case we need option in the future... (Default = "").
Reimplemented from URANIE::Sensitivity::TFiniteDifferences.
◆ generateSampleByOATDesign()
| void URANIE::Sensitivity::TDGSM::generateSampleByOATDesign | ( | Option_t * | option = "" | ) |
◆ getDataServer()
|
inline |
Returns a pointer to the internal data server.
- Returns
◆ getSensitivityMatrix()
| TMatrixD URANIE::Sensitivity::TDGSM::getSensitivityMatrix | ( | ) |
Returns the sensitivity matrix.
- Returns
◆ getStepSizeParameter()
|
inlinevirtual |
Get the step size parameter.
◆ initSample()
| void URANIE::Sensitivity::TDGSM::initSample | ( | Int_t | ns, |
| Option_t * | option = "" |
||
| ) |
initSample
- Parameters
-
ns (Int_t) size of the sample to generate option (Option_t) Possible options to generate the initial sample - "srs": generate sample with SRS
- "lhs": generate sample with LHS
- "qmc=sobol": generate sample with QMC=SOBOL
- "qmc=halton": generate sample with QMC=HALTON
◆ parseOption()
|
virtual |
Read the possible options.
Reimplemented from URANIE::Sensitivity::TSensitivity.
◆ printLog()
|
virtual |
printLog
Reimplemented from URANIE::Sensitivity::TFiniteDifferences.

Public Member Functions inherited from