English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TPCA.h Source File
Uranie / DataServer  v4.10.0
/* @license-end */
TPCA.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 
55 #ifndef TPCA_H
56 #define TPCA_H
57 //ROOT
58 #include "Rtypes.h"
59 #include "TNamed.h"
60 #include "TMatrixTBase.h"
61 #include "TVectorT.h"
62 
63 //URANIE
64 #include "DataServer.h"
65 #include "TDataServer.h"
66 
67 namespace URANIE
68 {
69 namespace DataServer
70 {
71 class TPCA: public TNamed
72 {
73 public:
74  Bool_t _blog;
76  TNtupleD * _ntdResult;
78  TNtupleD * _ntdLoading;
79 
81  TMatrixD _matCorr;
82  TVectorD _vecEigenValues;
84  TMatrixD _matEigenVectors;
85 
86 public:
87  //---------------------------------------------
91 
98  TPCA(URANIE::DataServer::TDataServer *tds, const char *varexp = "*",
99  Option_t * option = "");
100 
102  virtual ~TPCA();
104 
105  //---------------------------------------------
109 
145  TNtupleD* getResultNtupleD()
146  {
147  return _ntdResult;
148  }
149 
151 
159  {
160  return _ntdVarResult;
161  }
163 
164  //---------------------------------------------
168 
172  void compute(Option_t* option = "");
174 
175  //---------------------------------------------
179 
185  void drawPCA(Int_t indX, Int_t indY, Option_t* option = "");
187 
192  void drawLoading(Int_t indX, Int_t indY, Option_t* option = "");
194 
195  //---------------------------------------------
199  void setLog()
200  {
201  _blog = kTRUE;
202  }
203  void unsetLog()
204  {
205  _blog = kFALSE;
206  }
207  void changeLog()
208  {
209  _blog = _blog ? kFALSE : kTRUE;
210  }
211  Bool_t getLog()
212  {
213  return _blog;
214  }
215  virtual void printLog(Option_t *option = "RAS");
217 
218  ClassDef(URANIE::DataServer::TPCA, ID_DATASERVER)
219  //Definition of an variable
220 
221 };
222 
223 } // Fin du namespace DataServer
224 } // Fin du namespace URANIE
225 
226 #endif
ROOT.
Definition: TAttribute.h:104
Bool_t _blog
Boolean for edit the log.
Definition: TPCA.h:74
TNtupleD * _ntdLoading
The NTupleD of Loading.
Definition: TPCA.h:78
virtual void printLog(Option_t *option="RAS")
TPCA(URANIE::DataServer::TDataServer *tds, const char *varexp="*", Option_t *option="")
Default constructor with TDS and attributes.
void unsetLog()
Definition: TPCA.h:203
TVectorD _vecEigenValues
The vector of Eigenvalues.
Definition: TPCA.h:82
void drawPCA(Int_t indX, Int_t indY, Option_t *option="")
Draw the Component.
TDSNtupleD * _ntdVarResult
The NTupleD of results (for variable interpretation)
Definition: TPCA.h:77
TNtupleD * _ntdResult
Pointer to a TDS.
Definition: TPCA.h:76
TMatrixD _matEigenVectors
The matrix of Eigenvectors.
Definition: TPCA.h:84
TList * _listOfInputAttributes
The list of attributes.
Definition: TPCA.h:80
TMatrixD _matCorr
The matrix of Correlation.
Definition: TPCA.h:81
TVectorD _vecSumPctEigenValues
The vector of sum (in percent) of the Eigenvalues.
Definition: TPCA.h:83
Bool_t getLog()
Definition: TPCA.h:211
void compute(Option_t *option="")
The compute method.
void changeLog()
Definition: TPCA.h:207
URANIE::DataServer::TDataServer * _tds
Definition: TPCA.h:75
void drawLoading(Int_t indX, Int_t indY, Option_t *option="")
Draw the Loading.
Description of the class TDataServer.
Definition: TDataServer.h:85
Interface of the class URANIE::DataServer::TDataServer.
void setLog()
Definition: TPCA.h:199
Execute the Principal Component Analysis from a TDS.
Definition: TPCA.h:71
virtual ~TPCA()
Default destructor.
Definition: TDSNtupleD.h:35
TNtupleD * getResultNtupleD()
Return the NtupleD of results.
Definition: TPCA.h:145
TDSNtupleD * getVariableResultNtupleD()
Return the NtupleD of results.
Definition: TPCA.h:158