English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TExponentialDistribution.h Source File
Uranie / DataServer  v4.10.0
/* @license-end */
TExponentialDistribution.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 
57 #ifndef TEXPONENTIALDISTRIBUTION_H
58 #define TEXPONENTIALDISTRIBUTION_H
59 
60 //Uranie
61 #include "TStochAttribut.h"
62 
63 namespace URANIE
64 {
65 namespace DataServer
66 {
68 {
69  // Attributes
70 private:
71  Double_t _dparameterLambda;
72  Double_t _dparameterMode;
73 
74 public:
75  //---------------------------------------------
79 
84 
86 
91  TExponentialDistribution(TString name);
92 
94 
99  TExponentialDistribution(TString name, Double_t lambda,
100  Double_t mode = 0.0);
101 
103 
112  Double_t lambda, Double_t mode = 0.0);
113 
115  virtual ~TExponentialDistribution();
116 
118 
123 
130  virtual void setParameterLambda(Double_t lambda, Bool_t recompute = kTRUE);
131 
134  {
135  return _dparameterLambda;
136  }
137 
139 
146  virtual void setParameterMode(Double_t mode, Bool_t recompute = kTRUE);
147 
149  Double_t getParameterMode()
150  {
151  return _dparameterMode;
152  }
153 
155 
160  virtual void setParameters(Double_t lambda, Double_t mode = 0.0,
161  Bool_t recompute = kTRUE);
163 
168  virtual void computeTheoreticalInformation();
170 
172 
175  virtual Double_t getPDF(Double_t x);
176 
178 
181  virtual Double_t getCDF(Double_t x);
182 
184 
189  virtual Double_t getInvCDF(Double_t p);
191 
192  //---------------------------------------------
196  virtual void printLog(Option_t *option = "");
198 
199  ClassDef(URANIE::DataServer::TExponentialDistribution, ID_DATASERVER)
200  //Classe de
201 };
202 
203 } // Fin du namespace DataServer
204 } // Fin du namespace URANIE
205 #endif
ROOT.
Definition: TAttribute.h:104
virtual void setParameterLambda(Double_t lambda, Bool_t recompute=kTRUE)
Set the rate parameter.
virtual void setParameters(Double_t lambda, Double_t mode=0.0, Bool_t recompute=kTRUE)
Set all the parameters.
virtual Double_t getInvCDF(Double_t p)
Returns the value corresponding to the cumulative density p.
Description of the class TExponentialDistribution.
Definition: TExponentialDistribution.h:67
virtual void setParameterMode(Double_t mode, Bool_t recompute=kTRUE)
Set the mode parameter.
TExponentialDistribution()
Default constructor.
Double_t getParameterLambda()
Return the rate parameter.
Definition: TExponentialDistribution.h:133
virtual ~TExponentialDistribution()
Default destructor.
virtual Double_t getPDF(Double_t x)
Returns the probability density for the value x.
Double_t _dparameterMode
the mode parameter
Definition: TExponentialDistribution.h:72
Definition: TStochAttribut.h:369
Double_t _dparameterLambda
the rate parameter
Definition: TExponentialDistribution.h:71
Class of attributes following a probability density function.
Double_t getParameterMode()
Return the mode parameter.
Definition: TExponentialDistribution.h:149
virtual Double_t getCDF(Double_t x)
Returns the cumulative distribution for the value x.
Description of a variable (field).
Definition: TAttribute.h:136
virtual void printLog()
Display information specific to this class.
virtual void computeTheoreticalInformation()
Computes the theoretical values of various statistical measures.