English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TGammaDistribution.h Source File
Uranie / DataServer  v4.10.0
/* @license-end */
TGammaDistribution.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 
56 #ifndef TGAMMADISTRIBUTION_H
57 #define TGAMMADISTRIBUTION_H
58 
59 //Uranie
60 #include "TStochAttribut.h"
61 
62 namespace URANIE
63 {
64 namespace DataServer
65 {
67 {
68  // Attributes
69 private:
70  Double_t _dparameterAlpha;
71  Double_t _dparameterScale;
73 
74 public:
75  //---------------------------------------------
79 
84 
86 
91  TGammaDistribution(TString name);
92 
93 
94 
96 
103  TGammaDistribution(TString name, Double_t alpha, Double_t scale = 1.0, Double_t location = 0.0);
104 
106 
115  TGammaDistribution(URANIE::DataServer::TAttribute *att, Double_t alpha, Double_t scale = 1.0, Double_t location = 0.0);
116 
118  virtual ~TGammaDistribution();
119 
121 
122 
127  Double_t getParameterAlpha()
129  {
130  return _dparameterAlpha;
131  }
132 
133 
135  Double_t getParameterScale()
136  {
137  return _dparameterScale;
138  }
139 
142  {
143  return _dparameterLocation;
144  }
145 
147 
152  virtual void setParameters(Double_t alpha, Double_t scale = 1.0, Double_t location=0,
153  Bool_t recompute = kTRUE);
154 
156 
160  void setParameterAlpha(Double_t alpha, Bool_t recompute = kTRUE);
162 
166  void setParameterScale(Double_t scale, Bool_t recompute = kTRUE);
168 
173  void setParameterLocation(Double_t location, Bool_t recompute = kTRUE);
175 
180  virtual void computeTheoreticalInformation();
182 
184 
187  virtual Double_t getPDF(Double_t x);
188 
190 
193  virtual Double_t getCDF(Double_t x);
194 
196 
201  virtual Double_t getInvCDF(Double_t p);
203 
204  //---------------------------------------------
208  virtual void printLog(Option_t *option = "");
210 
211  ClassDef(URANIE::DataServer::TGammaDistribution, ID_DATASERVER)
212  //Classe de
213 };
214 
215 } // Fin du namespace DataServer
216 } // Fin du namespace URANIE
217 #endif
ROOT.
Definition: TAttribute.h:104
virtual Double_t getCDF(Double_t x)
Returns the cumulative distribution for the value x.
Double_t _dparameterScale
the scale parameter
Definition: TGammaDistribution.h:71
Description of the class TGammaDistribution.
Definition: TGammaDistribution.h:66
Double_t getParameterScale()
Return the scale parameter.
Definition: TGammaDistribution.h:135
void setParameterAlpha(Double_t alpha, Bool_t recompute=kTRUE)
Set alpha value.
TGammaDistribution()
Default constructor.
virtual Double_t getPDF(Double_t x)
Returns the probability density for the value x.
virtual ~TGammaDistribution()
Default destructor.
virtual void setParameters(Double_t alpha, Double_t scale=1.0, Double_t location=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.
Double_t getParameterLocation()
Return the location parameter.
Definition: TGammaDistribution.h:141
Definition: TStochAttribut.h:369
Double_t _dparameterAlpha
the shape parameter
Definition: TGammaDistribution.h:70
Class of attributes following a probability density function.
Double_t getParameterAlpha()
Return the shape parameter.
Definition: TGammaDistribution.h:128
void setParameterScale(Double_t scale, Bool_t recompute=kTRUE)
Set scale value.
virtual void computeTheoreticalInformation()
Computes the theoretical values of various statistical measures.
Description of a variable (field).
Definition: TAttribute.h:136
Double_t _dparameterLocation
the location parameter
Definition: TGammaDistribution.h:72
void setParameterLocation(Double_t location, Bool_t recompute=kTRUE)
Set location value.
virtual void printLog()
Display information specific to this class.