English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TTriangularDistribution.h Source File
Uranie / DataServer  v4.10.0
/* @license-end */
TTriangularDistribution.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 
60 #ifndef TTRIANGULARDISTRIBUTION_H
61 #define TTRIANGULARDISTRIBUTION_H
62 
63 //Uranie
64 #include "TStochAttribut.h"
65 
66 namespace URANIE
67 {
68 namespace DataServer
69 {
71 {
72 private:
73  Double_t _dleftArea;
74 
75 protected:
76  Double_t _dparameterMode;
77 
78 public:
79  //---------------------------------------------
83 
88 
90 
95  TTriangularDistribution(TString name);
96 
98 
105  TTriangularDistribution(TString name, Double_t min, Double_t max);
106 
108 
114  TTriangularDistribution(TString name, Double_t min, Double_t max,
115  Double_t mode);
116 
118 
126 
128  virtual ~TTriangularDistribution();
130 
137 
143  virtual void setParameterMode(Double_t mode);
144 
146  virtual Double_t getParameterMode()
147  {
148  return _dparameterMode;
149  }
150 
152 
159  virtual void setParameters(Double_t lower, Double_t upper, Double_t mode);
160 
162 
167  virtual void computeTheoreticalInformation();
169 
171 
174  virtual Double_t getPDF(Double_t x);
175 
177 
180  virtual Double_t getCDF(Double_t x);
181 
183 
188  virtual Double_t getInvCDF(Double_t p);
190 
191  //---------------------------------------------
195 
201  virtual void printLog(Option_t *option = "");
203 
204  ClassDef(URANIE::DataServer::TTriangularDistribution, ID_DATASERVER)
205  //Classe de
206 };
207 
208 } // Fin du namespace DataServer
209 } // Fin du namespace URANIE
210 #endif
ROOT.
Definition: TAttribute.h:104
Double_t _dparameterMode
The mode parameter.
Definition: TTriangularDistribution.h:76
virtual void setParameters(Double_t lower, Double_t upper, Double_t mode)
Set all parameters at once.
virtual Double_t getInvCDF(Double_t p)
Returns the value corresponding to the cumulative density p.
virtual Double_t getPDF(Double_t x)
Returns the probability density for the value x.
Definition: TStochAttribut.h:68
virtual void printLog()
Display information specific to this class.
virtual void computeTheoreticalInformation()
Computes the theoretical values of various statistical measures, like mean, standard deviation...
virtual Double_t getCDF(Double_t x)
Returns the cumulative distribution for the value x.
Description of the class TTriangularDistribution.
Definition: TTriangularDistribution.h:70
Class of attributes following a probability density function.
virtual Double_t getParameterMode()
Returns the value of the mode parameter.
Definition: TTriangularDistribution.h:146
TTriangularDistribution()
Default constructor.
Description of a variable (field).
Definition: TAttribute.h:136
Double_t _dleftArea
The probability that , equivalent to or getCDF( )
Definition: TTriangularDistribution.h:73
virtual void setParameterMode(Double_t mode)
Set the value of the mode parameter.
virtual ~TTriangularDistribution()
Default destructor.