English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Sensitivity: TFiniteDifferences_broken.h Source File
Uranie / Sensitivity  v4.10.0
/* @license-end */
TFiniteDifferences_broken.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2024 CEA/DES
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published
6 // by the Free Software Foundation, either version 3 of the License, or any
7 // later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 // $Id$
19 // $Author$
20 // $Date$
21 // $Revision$
22 // $State$
24 
78 #ifndef TFiniteDifferences_H
79 #define TFiniteDifferences_H
80 
81 // Uranie
82 #include "TStochAttribut.h"
83 #include "TSensitivity.h"
84 #include "TLauncher.h"
85 #include "TLauncherFunction.h"
86 
87 using std::cout;
88 using std::endl;
89 using namespace URANIE::DataServer;
90 
91 namespace URANIE
92 {
93 namespace Sensitivity
94 {
95 
96 //void SensitivityInteractiveMethod(Double_t *param, Double_t *out);
97 
98 class TFiniteDifferences: public TSensitivity
99 {
100 
101 private:
102  URANIE::DataServer::TDataServer* _tdsOAT;
103  TMatrixD _sMatrix;
104  TObjArray * _lRanges;
105  TObjArray * _lSensitiveAtt;
106  TObjArray * _lInputs;
107  TObjArray * _lOutputs;
108  // TString _sSensitiveAtt; ///< The list of sensitive attributes
109  // TString _sRanges; ///< the ranges of the sensitives attributes
110  // TString _sInputs; ///< the full list of input variables
111  // TString _sOutputs; ///< the full list of outputs
112  Bool_t _generateData;
113  URANIE::Launcher::TLauncher *_codeLauncher;
114  URANIE::Launcher::TLauncherFunction *_functionLauncher;
115  Int_t _nbIn;
116  Int_t _nbAux;
117  Int_t _nbOut;
118 protected:
119 
120 public:
121  //---------------------------------------------
127 
129 
156  TFiniteDifferences(TDataServer *tdsNominal, void *fcn, TString sensitiveAtt,
157  TString ranges, TString inputAtt, TString outputAtt);
158 
160 
182  TFiniteDifferences(TDataServer *tdsNominal, URANIE::Launcher::TCode *fcode,
183  TString sensitiveAtt, TString ranges);
184 
186 
203  TFiniteDifferences(TDataServer *tdsNominal, TString sensitiveAtt,
204  TString inputAtt, TString outputAtt);
205 
207  virtual ~TFiniteDifferences();
209 
210  //---------------------------------------------
214  TMatrixD getSensitivityMatrix()
216  {
217  return _sMatrix;
218  }
219 
221  TDataServer* getOATDataServer()
222  {
223  return _tdsOAT;
224  }
226 
227  //---------------------------------------------
231 
239  virtual void generateSample(Option_t * option = "");
240 
242 
243  //---------------------------------------------
247 
256  void computeIndexes(Option_t * option = "");
258 
259  //---------------------------------------------
263  virtual void printLog();
265  ClassDef(URANIE::Sensitivity::TFiniteDifferences, ID_SENSITIVITY)
266  //Definition of an variable
267 
268 };
269 
270 } // Fin du namespace Sensitivity
271 } // Fin du namespace URANIE
272 
273 #endif
ROOT.
Definition: TCMN.h:45
TObjArray * _lInputs
the full list of input variables
Definition: TFiniteDifferences_broken.h:106
TDataServer * getOATDataServer()
Returns a pointer to the internal data server.
Definition: TFiniteDifferences_broken.h:221
Int_t _nbOut
the number of outputs
Definition: TFiniteDifferences_broken.h:117
Bool_t _generateData
if TRUE, one need to generate the sampling
Definition: TFiniteDifferences_broken.h:112
Description of the class TFiniteDifferences.
Definition: TFiniteDifferences.h:79
URANIE::DataServer::TDataServer * _tdsOAT
a pointer to the data server containing the OAT sampling
Definition: TFiniteDifferences_broken.h:102
URANIE::Launcher::TLauncherFunction * _functionLauncher
a pointer to a function launcher
Definition: TFiniteDifferences_broken.h:114
TObjArray * _lRanges
the list of ranges of the sensitives attributes
Definition: TFiniteDifferences_broken.h:104
TObjArray * _lSensitiveAtt
The list of sensitive attributes.
Definition: TFiniteDifferences_broken.h:105
URANIE::Launcher::TLauncher * _codeLauncher
a pointer to a code launcher
Definition: TFiniteDifferences_broken.h:113
TObjArray * _lOutputs
the full list of outputs
Definition: TFiniteDifferences_broken.h:107
Interface of class URANIE::Sensitivity::TSensitivity.