English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Sampler: TDistribution.h Source File
Uranie / Sampler v4.9.0
/* @license-end */
TDistribution.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
33#ifndef TDISTRIBUTION_H
34#define TDISTRIBUTION_H
35
36#ifndef ROOT_TNtupleD
37#include "TNtupleD.h"
38#endif
39
40#ifndef ROOT_TFile
41#include "TFile.h"
42#endif
43
44#ifndef ROOT_TVectorD
45#include "TVectorD.h"
46#endif
47
48#ifndef ROOT_TMatrixD
49#include "TMatrixD.h"
50#endif
51
52#ifndef ROOT_TRandom3
53#include "TRandom3.h"
54#endif
55
56#include "Sampler.h"
57
58#include <iostream>
59using std::cout;
60using std::endl;
61
62#include "Rtypes.h"
63
64class TDistribution: public TObject
65{
66 // Associations
67 // Attributes
68protected:
70 TRandom3* _rdm;
72 Double_t _dprob;
74 Int_t _taille;
76 TNtupleD* _vect;
78 Int_t _dim;
80 TVectorD _vectMean;
84 // Operations
85public:
87 TDistribution(TVectorD M, TMatrixD A);
88 void initialisation(TVectorD M, TMatrixD A);
90 TNtupleD* getTuple()
91 {
92 return _vect;
93 }
94 //TFile* getFile() {return rootFile;}
95 void setTaille(Int_t n);
96 TRandom3* getRandom()
97 {
98 return _rdm;
99 }
100 Int_t getTaille()
101 {
102 return _taille;
103 }
104 Int_t getDim();
105 TVectorD getMean();
106 TVectorD getSigma();
108 TMatrixD getMatCorrelation();
109 TMatrixD getMatCovariance();
110 void setMean(TVectorD M);
111 void setMatEcartTypeCorrelation(TMatrixD A);
112 void setProb(Double_t proba)
113 {
114 _dprob = proba;
115 }
116 Double_t getProb()
117 {
118 return _dprob;
119 }
120 void simulation();
122 // a abstract class of the distribution
123};
124#endif
Definition TDistribution.h:65
TMatrixD getMatEcartTypeCorrelation()
Definition TDistribution.cxx:111
TNtupleD * _vect
Tuple where simulated samples are stored.
Definition TDistribution.h:76
TRandom3 * getRandom()
Definition TDistribution.h:96
TVectorD getMean()
Definition TDistribution.cxx:95
Int_t _dim
Dimension of the distribution.
Definition TDistribution.h:78
void simulation()
Definition TDistribution.cxx:85
void setMean(TVectorD M)
Definition TDistribution.cxx:142
Double_t getProb()
Definition TDistribution.h:116
TRandom3 * _rdm
Generator of random number.
Definition TDistribution.h:70
void verification()
Definition TDistribution.cxx:161
~TDistribution()
Definition TDistribution.cxx:73
TMatrixD getMatCorrelation()
Definition TDistribution.cxx:116
Int_t getDim()
Definition TDistribution.cxx:90
TNtupleD * getTuple()
Definition TDistribution.h:90
TMatrixD _matEcartTypeCorr
"_matEcartTypeCorr" represents the along the diagonal and elsewhere. Be careful the matrix must be ...
Definition TDistribution.h:83
ClassDef(TDistribution, ID_SAMPLER)
TMatrixD getMatCovariance()
Definition TDistribution.cxx:126
Int_t _taille
Sample size.
Definition TDistribution.h:74
void setProb(Double_t proba)
Definition TDistribution.h:112
Int_t getTaille()
Definition TDistribution.h:100
void setMatEcartTypeCorrelation(TMatrixD A)
Definition TDistribution.cxx:152
void initialisation(TVectorD M, TMatrixD A)
Definition TDistribution.cxx:60
TVectorD getSigma()
Definition TDistribution.cxx:100
TVectorD _vectMean
Mean value of the distribution.
Definition TDistribution.h:80
Double_t _dprob
Weight of the distribution.
Definition TDistribution.h:72
void setTaille(Int_t n)
Definition TDistribution.cxx:81