English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TComposedDistribution.h Source File
Uranie / DataServer  v4.10.0
/* @license-end */
TComposedDistribution.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 
43 #ifndef TCOMPOSEDDISTRIBUTION_H
44 #define TCOMPOSEDDISTRIBUTION_H
45 
46 //Uranie
47 #include "TStochAttribut.h"
48 
49 namespace URANIE
50 {
51 namespace DataServer
52 {
54 {
55 
56 private:
57 protected:
58  int _iNbLaws;
59  double _dSumWeights;
60  vector<TStochasticAttribute *> _inputLaws;
61  vector<double> _inputWeights;
62 
63 public:
64  //---------------------------------------------
70 
72 
75  TComposedDistribution(TString name);
76 
77 
79  virtual ~TComposedDistribution();
81  //---------------------------------------------
86 
93  int addDistribution(URANIE::DataServer::TStochasticAttribute *statt, double weight=1.);
94 
95  int getNbComponent() { return _iNbLaws;}
96 
98 
103 
108  void computeTheoreticalInformation(int info=0);
109 
111 
115  virtual Double_t getCDF(Double_t x);
116 
118 
126  virtual Double_t getPDF(Double_t x);
127 
129 
135  virtual Double_t getInvCDF(Double_t p);
136 
141 
142  //---------------------------------------------
146  virtual void printLog(Option_t *option = "");
148 
149  ClassDef(URANIE::DataServer::TComposedDistribution, ID_DATASERVER)
150 };
151 } // Fin du namespace DataServer
152 } // Fin du namespace URANIE
153 #endif
ROOT.
Definition: TAttribute.h:104
virtual double getTheoreticalMean()
Returns the theoretical value of the mean.
Definition: TComposedDistribution.h:137
int getNbComponent()
Definition: TComposedDistribution.h:95
virtual Double_t getInvCDF(Double_t p)
Returns a value from the distribution.
Definition: TStochAttribut.h:68
int addDistribution(URANIE::DataServer::TStochasticAttribute *statt, double weight=1.)
add a distribution
Double_t _dtheoreticalMean
The theoretical mean.
Definition: TStochAttribut.h:108
virtual Double_t getCDF(Double_t x)
CDF is meaningless for non ordered discrete values.
Double_t _dtheoreticalMode
The theoretical mode.
Definition: TStochAttribut.h:110
Definition: TStochAttribut.h:369
virtual double getTheoreticalMode()
Returns the theoretical value of the mode.
Definition: TComposedDistribution.h:139
virtual void computeTheoreticalInformation()
Mean and Variance are meaningless for non ordered discrete values.
Definition: TComposedDistribution.h:107
vector< TStochasticAttribute * > _inputLaws
Pointers of laws in the composition.
Definition: TComposedDistribution.h:60
virtual ~TComposedDistribution()
Default destructor.
Class of attributes following a probability density function.
int _iNbLaws
Number of laws in the composition.
Definition: TComposedDistribution.h:58
Double_t _dtheoreticalStdDev
The theoretical standard deviation.
Definition: TStochAttribut.h:109
Description of the class TComposedDistribution.
Definition: TComposedDistribution.h:53
vector< double > _inputWeights
Weights of laws in the composition.
Definition: TComposedDistribution.h:61
double _dSumWeights
Sum of all weights.
Definition: TComposedDistribution.h:59
virtual double getTheoreticalStdDev()
Returns the theoretical value of the standard deviation.
Definition: TComposedDistribution.h:138
TComposedDistribution()
Default constructor.
virtual void printLog()
Display information specific to this class.
virtual Double_t getPDF(Double_t x)
Returns the probability of a value.