English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TTrapeziumDistribution.h Source File
Uranie / DataServer v4.9.0
/* @license-end */
TTrapeziumDistribution.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
64#ifndef TTRAPEZIUMDISTRIBUTION_H
65#define TTRAPEZIUMDISTRIBUTION_H
66
67//Uranie
68#include "TStochAttribut.h"
69
70namespace URANIE
71{
72namespace DataServer
73{
75{
76private:
80
81protected:
82 Double_t _dparameterXlow;
83 Double_t _dparameterXup;
84
85public:
86 //---------------------------------------------
90
95
97
103
105
112 TTrapeziumDistribution(TString name, Double_t xmin, Double_t xmax);
113
115
125 TTrapeziumDistribution(TString name, Double_t xmin, Double_t xmax,
126 Double_t xlow, Double_t xup);
127
129
140 Double_t xup);
141
145
153
158 virtual void setParameterXlower(Double_t xlow);
159
161
166 virtual void setParameterXupper(Double_t xup);
167
169 virtual Double_t getParameterXlower()
170 {
171 return _dparameterXlow;
172 }
173
175 virtual Double_t getParameterXupper()
176 {
177 return _dparameterXup;
178 }
179
181
190 virtual void setParameters(Double_t xmin, Double_t xmax, Double_t xlow,
191 Double_t xup);
192
194
199 // \todo theoretical mean and standard deviation formulas must be implemented.
202
204
207 virtual Double_t getPDF(Double_t x);
208
210
213 virtual Double_t getCDF(Double_t x);
214
216
221 virtual Double_t getInvCDF(Double_t p);
223
224 //---------------------------------------------
228
234 virtual void printLog(Option_t *option = "");
236
237 ClassDef(URANIE::DataServer::TTrapeziumDistribution, ID_DATASERVER)
238 //Classe de
239};
240
241} // Fin du namespace DataServer
242} // Fin du namespace URANIE
243#endif
Class of attributes following a probability density function.
Description of a variable (field).
Definition TAttribute.h:138
Definition TStochAttribut.h:69
Description of the class TTrapeziumDistribution.
Definition TTrapeziumDistribution.h:75
Double_t _dparameterXup
The upper limit of the small base.
Definition TTrapeziumDistribution.h:83
virtual void setParameters(Double_t xmin, Double_t xmax, Double_t xlow, Double_t xup)
Set all parameters at once.
virtual Double_t getCDF(Double_t x)
Returns the cumulative distribution for the value x.
TTrapeziumDistribution(TString name, Double_t xmin, Double_t xmax)
Constructor setting name and range.
virtual void setParameterXlower(Double_t xlow)
Set the value of the lower limit of the small base.
Double_t _dlowerTriangleArea
Area of the lower triangle.
Definition TTrapeziumDistribution.h:78
TTrapeziumDistribution(URANIE::DataServer::TAttribute *att, Double_t xlow, Double_t xup)
Construction of a TUniformDistribution from an existing TAttribute object.
TTrapeziumDistribution(TString name, Double_t xmin, Double_t xmax, Double_t xlow, Double_t xup)
Constructor setting name, range and small base limits.
virtual ~TTrapeziumDistribution()
Default destructor.
TTrapeziumDistribution(TString name)
Constructor setting the name.
virtual Double_t getParameterXlower()
Returns the value of the lower limit of the small base.
Definition TTrapeziumDistribution.h:169
virtual Double_t getPDF(Double_t x)
Returns the probability density for the value x.
virtual void setParameterXupper(Double_t xup)
Set the value of the lower limit of the small base.
virtual Double_t getParameterXupper()
Returns the value of the upper limit of the small base.
Definition TTrapeziumDistribution.h:175
Double_t _dupperTriangleArea
Area of the upper triangle.
Definition TTrapeziumDistribution.h:79
TTrapeziumDistribution()
Default constructor.
virtual void computeTheoreticalInformation()
Computes the theoretical values of various statistical measures, like mean, standard deviation,...
virtual void printLog(Option_t *option="")
Display information specific to this class.
Double_t _dparameterXlow
The lower limit of the small base.
Definition TTrapeziumDistribution.h:82
virtual Double_t getInvCDF(Double_t p)
Returns the value corresponding to the cumulative density p.
Double_t _dtrapeziumHeight
The height of the trapezium.
Definition TTrapeziumDistribution.h:77
ROOT.
Definition TAttribute.h:106