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.9.0
/* @license-end */
TComposedDistribution.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
43#ifndef TCOMPOSEDDISTRIBUTION_H
44#define TCOMPOSEDDISTRIBUTION_H
45
46//Uranie
47#include "TStochAttribut.h"
48
49namespace URANIE
50{
51namespace DataServer
52{
54{
55
56private:
57protected:
59 double _dSumWeights;
60 vector<TStochasticAttribute *> _inputLaws;
61 vector<double> _inputWeights;
62
63public:
64 //---------------------------------------------
68
70
72
75 TComposedDistribution(TString name);
76
77
81 //---------------------------------------------
86
94
95 int getNbComponent() { return _iNbLaws;}
96
98
104
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
Class of attributes following a probability density function.
Description of the class TComposedDistribution.
Definition TComposedDistribution.h:54
int _iNbLaws
Number of laws in the composition.
Definition TComposedDistribution.h:58
virtual void computeTheoreticalInformation()
Mean and Variance are meaningless for non ordered discrete values.
Definition TComposedDistribution.h:107
virtual void printLog(Option_t *option="")
virtual double getTheoreticalMode()
Returns the theoretical value of the mode.
Definition TComposedDistribution.h:139
TComposedDistribution()
Default constructor.
double _dSumWeights
Sum of all weights.
Definition TComposedDistribution.h:59
virtual ~TComposedDistribution()
Default destructor.
vector< TStochasticAttribute * > _inputLaws
Pointers of laws in the composition.
Definition TComposedDistribution.h:60
virtual double getTheoreticalMean()
Returns the theoretical value of the mean.
Definition TComposedDistribution.h:137
virtual Double_t getCDF(Double_t x)
CDF is meaningless for non ordered discrete values.
virtual Double_t getInvCDF(Double_t p)
Returns a value from the distribution.
virtual Double_t getPDF(Double_t x)
Returns the probability of a value.
vector< double > _inputWeights
Weights of laws in the composition.
Definition TComposedDistribution.h:61
int addDistribution(URANIE::DataServer::TStochasticAttribute *statt, double weight=1.)
add a distribution
TComposedDistribution(TString name)
Constructor by name only.
int getNbComponent()
Definition TComposedDistribution.h:95
virtual double getTheoreticalStdDev()
Returns the theoretical value of the standard deviation.
Definition TComposedDistribution.h:138
Definition TStochAttribut.h:370
Definition TStochAttribut.h:69
Double_t _dtheoreticalMode
The theoretical mode.
Definition TStochAttribut.h:110
Double_t _dtheoreticalMean
The theoretical mean.
Definition TStochAttribut.h:108
Double_t _dtheoreticalStdDev
The theoretical standard deviation.
Definition TStochAttribut.h:109
ROOT.
Definition TAttribute.h:106