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.9.0
/* @license-end */
TPCA.h
Go to the documentation of this file.
1
2// 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
67namespace URANIE
68{
69namespace DataServer
70{
71class TPCA: public TNamed
72{
73public:
74 Bool_t _blog;
76 TNtupleD * _ntdResult;
78 TNtupleD * _ntdLoading;
79
81 TMatrixD _matCorr;
82 TVectorD _vecEigenValues;
85
86public:
87 //---------------------------------------------
91
98 TPCA(URANIE::DataServer::TDataServer *tds, const char *varexp = "*",
99 Option_t * option = "");
100
102 virtual ~TPCA();
104
105 //---------------------------------------------
109
146 {
147 return _ntdResult;
148 }
149
151
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 }
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
Interface of the class URANIE::DataServer::TDataServer.
Definition TDSNtupleD.h:36
Description of the class TDataServer.
Definition TDataServer.h:86
Execute the Principal Component Analysis from a TDS.
Definition TPCA.h:72
TVectorD _vecSumPctEigenValues
The vector of sum (in percent) of the Eigenvalues.
Definition TPCA.h:83
TDSNtupleD * _ntdVarResult
The NTupleD of results (for variable interpretation)
Definition TPCA.h:77
TList * _listOfInputAttributes
The list of attributes.
Definition TPCA.h:80
void drawLoading(Int_t indX, Int_t indY, Option_t *option="")
Draw the Loading.
TNtupleD * _ntdResult
Pointer to a TDS.
Definition TPCA.h:76
TVectorD _vecEigenValues
The vector of Eigenvalues.
Definition TPCA.h:82
Bool_t getLog()
Definition TPCA.h:211
void compute(Option_t *option="")
The compute method.
TDSNtupleD * getVariableResultNtupleD()
Return the NtupleD of results.
Definition TPCA.h:158
URANIE::DataServer::TDataServer * _tds
Definition TPCA.h:75
virtual ~TPCA()
Default destructor.
void setLog()
Definition TPCA.h:199
virtual void printLog(Option_t *option="RAS")
Bool_t _blog
Boolean for edit the log.
Definition TPCA.h:74
void unsetLog()
Definition TPCA.h:203
TPCA(URANIE::DataServer::TDataServer *tds, const char *varexp="*", Option_t *option="")
Default constructor with TDS and attributes.
TMatrixD _matCorr
The matrix of Correlation.
Definition TPCA.h:81
void drawPCA(Int_t indX, Int_t indY, Option_t *option="")
Draw the Component.
TMatrixD _matEigenVectors
The matrix of Eigenvectors.
Definition TPCA.h:84
void changeLog()
Definition TPCA.h:207
TNtupleD * _ntdLoading
The NTupleD of Loading.
Definition TPCA.h:78
TNtupleD * getResultNtupleD()
Return the NtupleD of results.
Definition TPCA.h:145
ROOT.
Definition TAttribute.h:106