English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Sampler: TMelange.h Source File
Uranie / Sampler v4.9.0
/* @license-end */
TMelange.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/>.
17#ifndef TMELANGE_H
18#define TMELANGE_H
19
20#ifndef ROOT_TNtupleD
21#include "TNtupleD.h"
22#endif
23#ifndef ROOT_TFile
24#include "TFile.h"
25#endif
26#ifndef ROOT_TRandom
27#include "TRandom.h"
28#endif
29#ifndef ROOT_TArrayF
30#include "TArrayF.h"
31#endif
32
33#include <iostream>
34using std::cout;
35using std::endl;
36
37#include "Rtypes.h"
38#include "TNormale.h"
39
40class TList;
42{
43 // Associations
44 // Attributes
45private:
48 TList* lLoi;
51 Int_t _taille;
54 TNtupleD* _nt;
56 TRandom* _rand;
59 // Operations
60public:
61 TMelange(Int_t n);
62 ~TMelange();
63 void _printlog();
64 void setTaille(Int_t n)
65 {
66 _taille = n;
67 }
68 Int_t getTaille()
69 {
70 return _taille;
71 }
73 {
74 return _tailleMelange;
75 }
76 Double_t eval(TVectorD X);
77 Double_t eval(Double_t x);
79 {
80 return _dimMelange;
81 }
82 TNtupleD* getTuple()
83 {
84 return _nt;
85 }
86 TVectorD getSeuil();
87 Double_t getProb(Int_t i);
88 TVectorD getMean(Int_t i);
89 TVectorD getMean();
90 TVectorD getVariance();
91 TVectorD getSigma();
92 TMatrixD getMatEcartTypeCorrelation(Int_t i);
94 TVectorD getSigma(Int_t i);
95 TMatrixD getMatCorrelation(Int_t i);
96 TMatrixD getMatCovariance(Int_t i);
97 TMatrixD getMatCovariance();
98 TMatrixD getMatCorrelation();
99 Double_t getObs();
100 void simulationMelange();
101 void addLoi(TVectorD moy, TMatrixD ecartTypeCorr, Double_t proba);
102 void removeLoi(Int_t i);
103 void addTuple(TNtupleD* t);
104 TVectorD LoiDeZ(TVectorD X);
105 TVectorD discrimination(TVectorD X);
106 void reset();
107 void remplacer(Int_t i, TVectorD M, TMatrixD A);
108 void afficher();
109};
110
111#endif
Definition TMelange.h:42
void removeLoi(Int_t i)
Definition TMelange.cxx:425
TVectorD getVariance()
Definition TMelange.cxx:161
void addTuple(TNtupleD *t)
Definition TMelange.cxx:393
TNtupleD * _nt
Definition TMelange.h:54
TVectorD getSeuil()
Definition TMelange.cxx:308
void _printlog()
Definition TMelange.cxx:37
void setTaille(Int_t n)
Definition TMelange.h:64
TNormale * f
Definition TMelange.h:46
Double_t eval(TVectorD X)
Definition TMelange.cxx:75
TVectorD getSigma()
Definition TMelange.cxx:169
Int_t _tailleMelange
Chained list used to go through the mixing.
Definition TMelange.h:50
void remplacer(Int_t i, TVectorD M, TMatrixD A)
Replaces the component i by a component N(M,A)
Definition TMelange.cxx:485
Double_t getProb(Int_t i)
Definition TMelange.cxx:99
~TMelange()
Definition TMelange.cxx:69
TRandom * _rand
Tuple in which the sample is stocked.
Definition TMelange.h:56
Int_t _taille
Definition TMelange.h:51
Int_t getTailleMelange()
Definition TMelange.h:72
void afficher()
Prints the characteristics of mixing modes.
Definition TMelange.cxx:500
void reset()
Definition TMelange.cxx:440
TVectorD LoiDeZ(TVectorD X)
Computes the conditional repartition function for X belonging to a mode.
Definition TMelange.cxx:449
void simulationMelange()
Classic simulation of a mixing.
Definition TMelange.cxx:335
Int_t getDimMelange()
Definition TMelange.h:78
TMatrixD getMatEcartTypeCorrelation()
Definition TMelange.cxx:299
TList * lLoi
Normal law used for intermediary calculations.
Definition TMelange.h:48
TNtupleD * getTuple()
Definition TMelange.h:82
TVectorD discrimination(TVectorD X)
Computes for each mode, the 'a posteriori' probability that X belongs to the mode....
Definition TMelange.cxx:468
TMatrixD getMatCorrelation()
Definition TMelange.cxx:289
TMatrixD getMatCovariance()
Definition TMelange.cxx:275
void addLoi(TVectorD moy, TMatrixD ecartTypeCorr, Double_t proba)
Definition TMelange.cxx:409
Int_t _dimMelange
Sample size to be simulated.
Definition TMelange.h:53
TVectorD getMean()
Definition TMelange.cxx:147
Int_t getTaille()
Definition TMelange.h:68
Double_t getObs()
Definition TMelange.cxx:374
Definition TNormale.h:48