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 TRegression. More...
#include <TRegression.h>


Public Types | |
| enum | EMethod { kSRC, kSRRC, kPCC, kPRCC, kUnknown } |
Public Types inherited from URANIE::Sensitivity::TSensitivity | |
| enum | ELauncher { kCode, kCodeRemote, kFunction, kRun, kUnknown } |
Public Member Functions | |
Constructor and Destructor | |
| TRegression () | |
| Default constructor. More... | |
| TRegression (URANIE::DataServer::TDataServer *tds, const char *varexpinput, const char *varexpoutput, Option_t *option="src") | |
| Default constructor with the TDataServer. More... | |
| virtual | ~TRegression () |
| Default destructor. More... | |
Setter and Getter for the method | |
| void | setMethod (EMethod nmethod) |
| Sets the method. More... | |
| void | clearMethod () |
| Clear the method index. More... | |
| int | getMethod () |
| Gets the transform function. More... | |
Generation of the sample | |
In this case, there is noting to do | |
| void | generateSample (Option_t *option="") |
Computes the indexes | |
| void | evaluateIndexes (Option_t *option="") |
| Evaluates the index from a Specific TDataServer. More... | |
| void | preTreatment () |
| PreTreatment for every output. More... | |
| void | getUncertaintyFromRhoTransformation (double &rho, double &CImin, double &CImax) |
| Compute the CI from the rho estimation (handmade) More... | |
Getters/Setters | |
| Double_t | getR2 () |
| get the coefficient of determination R2 More... | |
| Double_t | getR2A () |
| get the adjuested coefficient of determination R2A More... | |
| Double_t | getSumOfSquareIndexes () |
| Get the sum of square indexes. More... | |
Printing Log | |
| virtual void | printLog (Option_t *option="") |
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) |
| virtual void | parseOption (Option_t *option="") |
| Read the possible options. More... | |
| 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 () |
| void | setNLauncher (ELauncher codeLauncher) |
Private Attributes | |
| int | _nMethod |
| The type of method. Changed to int for convenience (see setMethod) More... | |
| Double_t | _dr2 |
| The R2 define by the formula. More... | |
| Double_t | _dr2A |
| The R2A define by the formula. More... | |
| Double_t | _dSumOfSquareIndexes |
| The sum of square indexes \( \sum_{i} S_i^2 \). More... | |
| TMatrixD | _mmatCorr |
| Matrix of correlation to be used for coefficient calculation. More... | |
| TMatrixD | _mmatCorrRank |
| Matrix of rank correlation to be used for coefficient calculation. More... | |
| URANIE::DataServer::UMessageLogger * | _fLogger |
| Message logger. More... | |
| TString | _sCompleteMethod |
| URANIE::DataServer::TDataServer * | _fake |
Additional Inherited Members | |
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::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 TRegression.
To be written by the developper.
Member Enumeration Documentation
◆ EMethod
Constructor & Destructor Documentation
◆ TRegression() [1/2]
| URANIE::Sensitivity::TRegression::TRegression | ( | ) |
Default constructor.
Referenced by ClassImp().
◆ TRegression() [2/2]
| URANIE::Sensitivity::TRegression::TRegression | ( | URANIE::DataServer::TDataServer * | tds, |
| const char * | varexpinput, | ||
| const char * | varexpoutput, | ||
| Option_t * | option = "src" |
||
| ) |
Default constructor with the TDataServer.
◆ ~TRegression()
|
virtual |
Default destructor.
Referenced by ClassImp().
Member Function Documentation
◆ clearMethod()
|
inline |
Clear the method index.
References _nMethod.
◆ evaluateIndexes()
|
virtual |
Evaluates the index from a Specific TDataServer.
The TDS must contain an attribute Name + "n__iter__sobol" with values
- -1 : for the M matrix
- 0 : for the N matrix
- ix+1 : for the matrix Mi
- 100*_nX+ ix+1 : for the matrix Ni
- Parameters
-
option (Option_t *) option to pass [""]
Implements URANIE::Sensitivity::TSensitivity.
Referenced by ClassImp().
◆ generateSample()
|
inlinevirtual |
Implements URANIE::Sensitivity::TSensitivity.
◆ getMethod()
|
inline |
Gets the transform function.
References _nMethod.
◆ getR2()
|
inline |
get the coefficient of determination R2
◆ getR2A()
|
inline |
get the adjuested coefficient of determination R2A
References _dr2A.
◆ getSumOfSquareIndexes()
|
inline |
Get the sum of square indexes.
the returned parameter is define by the formula
\[ \sum_{i=1}^{nX}{\alpha_i^2} \]
References _dSumOfSquareIndexes.
◆ getUncertaintyFromRhoTransformation()
| void URANIE::Sensitivity::TRegression::getUncertaintyFromRhoTransformation | ( | double & | rho, |
| double & | CImin, | ||
| double & | CImax | ||
| ) |
Compute the CI from the rho estimation (handmade)
Compute the CI from the rho estimation (handmade)
Referenced by ClassImp().
◆ preTreatment()
|
virtual |
PreTreatment for every output.
Doing a pre-treatment when running over outputs.
Reimplemented from URANIE::Sensitivity::TSensitivity.
Referenced by ClassImp().
◆ printLog()
|
virtual |
Reimplemented from URANIE::Sensitivity::TSensitivity.
Referenced by ClassImp().
◆ setMethod()
|
inline |
Sets the method.
The _nMethod is now a int so that one can ask for several calculation at the same time Possibilities are now: SRC, SRRC, PCC and PRCC
References _nMethod.
Member Data Documentation
◆ _dr2
|
private |
The R2 define by the formula.
Referenced by ClassImp().
◆ _dr2A
|
private |
The R2A define by the formula.
Referenced by ClassImp(), and getR2A().
◆ _dSumOfSquareIndexes
|
private |
The sum of square indexes \( \sum_{i} S_i^2 \).
Referenced by ClassImp(), and getSumOfSquareIndexes().
◆ _fake
|
private |
Referenced by ClassImp().
◆ _fLogger
|
private |
Message logger.
Referenced by ClassImp().
◆ _mmatCorr
|
private |
Matrix of correlation to be used for coefficient calculation.
Referenced by ClassImp().
◆ _mmatCorrRank
|
private |
Matrix of rank correlation to be used for coefficient calculation.
Referenced by ClassImp().
◆ _nMethod
|
private |
The type of method. Changed to int for convenience (see setMethod)
Referenced by ClassImp(), clearMethod(), getMethod(), and setMethod().
◆ _sCompleteMethod
|
private |
Referenced by ClassImp().

Public Types inherited from