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.9.0
/* @license-end */
TTriangularDistribution.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
60#ifndef TTRIANGULARDISTRIBUTION_H
61#define TTRIANGULARDISTRIBUTION_H
62
63//Uranie
64#include "TStochAttribut.h"
65
66namespace URANIE
67{
68namespace DataServer
69{
71{
72private:
73 Double_t _dleftArea;
74
75protected:
76 Double_t _dparameterMode;
77
78public:
79 //---------------------------------------------
83
88
90
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
130
138
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
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
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 TTriangularDistribution.
Definition TTriangularDistribution.h:71
virtual void setParameterMode(Double_t mode)
Set the value of the mode parameter.
virtual Double_t getPDF(Double_t x)
Returns the probability density for the value x.
Double_t _dparameterMode
The mode parameter.
Definition TTriangularDistribution.h:76
TTriangularDistribution(URANIE::DataServer::TAttribute *att, Double_t mode)
Construction of a TUniformDistribution from an existing TAttribute object.
virtual ~TTriangularDistribution()
Default destructor.
virtual void printLog(Option_t *option="")
Display information specific to this class.
virtual Double_t getCDF(Double_t x)
Returns the cumulative distribution for the value x.
virtual Double_t getParameterMode()
Returns the value of the mode parameter.
Definition TTriangularDistribution.h:146
TTriangularDistribution(TString name, Double_t min, Double_t max, Double_t mode)
Constructor setting name, range and mode.
virtual void computeTheoreticalInformation()
Computes the theoretical values of various statistical measures, like mean, standard deviation,...
TTriangularDistribution(TString name)
Constructor setting the name.
Double_t _dleftArea
The probability that , equivalent to or getCDF( )
Definition TTriangularDistribution.h:73
TTriangularDistribution(TString name, Double_t min, Double_t max)
Constructor setting name and range.
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.
ROOT.
Definition TAttribute.h:106