English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Sensitivity: TFast.h Source File
Uranie / Sensitivity  v4.10.0
/* @license-end */
TFast.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 
41 #ifndef TFAST_H
42 #define TFAST_H
43 
45 #include "TSensitivity.h"
46 #include "TSpaceFilling.h"
47 
48 #include <iostream>
49 using std::cout;
50 using std::endl;
51 
52 namespace URANIE
53 {
54 namespace Sensitivity
55 {
56 class TFast: public TSensitivity
57 {
58 public:
59  enum EFunction
60  {
62  };
63 
64  // Attributes
65 public:
66  Int_t * _nValFreq;
67  Int_t _nM;
68  bool b_plotgraph;
69 private:
71 
72  // constructor helpers
73  void stdInit();
74 public:
75  //---------------------------------------------
79  TFast();
82 #ifdef ROOT5
83  TFast(URANIE::DataServer::TDataServer *tds, void *fcn, Int_t ns = 100,
84  const char *varexpinput = "", const char *varexpoutput = "");
85 #else
86  TFast(URANIE::DataServer::TDataServer *tds, void (*fcn)(Double_t*,Double_t*),
87  const char *varexpinput, const char *varexpoutput, Int_t ns = 100);
88 #endif
89  TFast(URANIE::DataServer::TDataServer *tds, const char* fcn, Int_t ns = 100,
91  const char *varexpinput = "", const char *varexpoutput = "");
93  TFast(URANIE::DataServer::TDataServer *tds, URANIE::Launcher::TCode *fcode,
94  Int_t ns);
96  TFast(URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TRun *run,
97  Int_t ns);
99  virtual ~TFast();
101 
102  //---------------------------------------------
107  void setFrequencies(Int_t nfreq, Int_t *valfreq);
111  {
112  _nFunction = ntype;
113  }
116  {
117  return _nFunction;
118  }
120  void setM(Int_t m)
121  {
122  _nM = m;
123  }
125  Int_t getM()
126  {
127  return _nM;
128  }
129 
131 
132  //---------------------------------------------
136 
141  virtual void parseOption(Option_t *option = "");
143 
144 
145  //---------------------------------------------
149  virtual void generateSample(Option_t * option = "");
151 
152  //---------------------------------------------
156  virtual void evaluateIndexes(Option_t * option = "");
159 
160  //---------------------------------------------
164  virtual void printLog(Option_t *option = "");
166 
167  ClassDef(URANIE::Sensitivity::TFast, ID_SENSITIVITY)
168  //Classe de
169 };
170 
171 } // Fin du namespace Sensitivity
172 } // Fin du namespace URANIE
173 #endif
ROOT.
Definition: TCMN.h:45
Int_t _nM
The max harmonic to consider.
Definition: TFast.h:67
virtual void parseOption(Option_t *option="")
Read option specific to TSobol.
TFast()
Default constructor.
Description of the class TFast.
Definition: TFast.h:56
virtual ~TFast()
Default destructor.
virtual void generateSample(Option_t *option="")
EFunction _nFunction
The function G.
Definition: TFast.h:70
Description of the class TSensitivity.
Definition: TSensitivity.h:111
void setTransformFunction(EFunction ntype)
Sets the Transform fonction.
Definition: TFast.h:110
EFunction
Definition: TFast.h:59
bool b_plotgraph
Plot the graph.
Definition: TFast.h:68
void setFrequencies(Int_t nfreq, Int_t *valfreq)
Sets the frequencies array.
Int_t * _nValFreq
The array of frequences.
Definition: TFast.h:66
EFunction getTransformFunction()
Gets the transform function.
Definition: TFast.h:115
Int_t getM()
Returns the max number of harmonic to consider.
Definition: TFast.h:125
virtual void printLog(Option_t *option="")
Interface of class URANIE::Sensitivity::TSensitivity.
void setM(Int_t m)
Sets the max number of harmonic.
Definition: TFast.h:120
virtual void evaluateIndexes(Option_t *option="")
Evaluates the index from the dataserver.