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.10.0
/* @license-end */
TTrapeziumDistribution.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 
64 #ifndef TTRAPEZIUMDISTRIBUTION_H
65 #define TTRAPEZIUMDISTRIBUTION_H
66 
67 //Uranie
68 #include "TStochAttribut.h"
69 
70 namespace URANIE
71 {
72 namespace DataServer
73 {
75 {
76 private:
77  Double_t _dtrapeziumHeight;
80 
81 protected:
82  Double_t _dparameterXlow;
83  Double_t _dparameterXup;
84 
85 public:
86  //---------------------------------------------
90 
95 
97 
102  TTrapeziumDistribution(TString name);
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 
143  virtual ~TTrapeziumDistribution();
145 
152 
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.
201  virtual void computeTheoreticalInformation();
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
ROOT.
Definition: TAttribute.h:104
virtual void setParameterXupper(Double_t xup)
Set the value of the lower limit of the small base.
Double_t _dlowerTriangleArea
Area of the lower triangle.
Definition: TTrapeziumDistribution.h:78
virtual Double_t getPDF(Double_t x)
Returns the probability density for the value x.
Double_t _dupperTriangleArea
Area of the upper triangle.
Definition: TTrapeziumDistribution.h:79
TTrapeziumDistribution()
Default constructor.
virtual Double_t getParameterXupper()
Returns the value of the upper limit of the small base.
Definition: TTrapeziumDistribution.h:175
Definition: TStochAttribut.h:68
Double_t _dparameterXup
The upper limit of the small base.
Definition: TTrapeziumDistribution.h:83
virtual void printLog()
Display information specific to this class.
virtual void setParameters(Double_t xmin, Double_t xmax, Double_t xlow, Double_t xup)
Set all parameters at once.
virtual ~TTrapeziumDistribution()
Default destructor.
Double_t _dtrapeziumHeight
The height of the trapezium.
Definition: TTrapeziumDistribution.h:77
virtual void setParameterXlower(Double_t xlow)
Set the value of the lower limit of the small base.
virtual void computeTheoreticalInformation()
Computes the theoretical values of various statistical measures, like mean, standard deviation...
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.
virtual Double_t getCDF(Double_t x)
Returns the cumulative distribution for the value x.
Class of attributes following a probability density function.
Description of the class TTrapeziumDistribution.
Definition: TTrapeziumDistribution.h:74
Description of a variable (field).
Definition: TAttribute.h:136
virtual Double_t getParameterXlower()
Returns the value of the lower limit of the small base.
Definition: TTrapeziumDistribution.h:169