English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TLogNormalDistribution.h Source File
Uranie / DataServer  v4.10.0
/* @license-end */
TLogNormalDistribution.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 
81 #ifndef TLOGNORMALDISTRIBUTION_H
82 #define TLOGNORMALDISTRIBUTION_H
83 
84 //Uranie
85 #include "TStochAttribut.h"
86 #include "TNormalDistribution.h"
87 
88 namespace URANIE
89 {
90 namespace DataServer
91 {
93 {
94 private:
96  Double_t _dparameterXMin;
97  Double_t _dparameterMean;
99 
101 
105  void createUnderlyingNormal(Double_t M, Double_t errorfactor);
106 
107 public:
108  //---------------------------------------------
112 
117 
119 
124  TLogNormalDistribution(TString name);
125 
127 
133  TLogNormalDistribution(TString name, Double_t M, Double_t errorfactor,
134  Double_t xmin = 0.0);
135 
137 
147  Double_t errorfactor, Double_t xmin = 0.0);
148 
150  virtual ~TLogNormalDistribution();
151 
153 
163 
170  virtual void setParameterMean(Double_t M, Bool_t recompute = kTRUE);
171 
173  Double_t getParameterMean()
174  {
175  return _dparameterMean;
176  }
177 
179 
185  virtual void setParameterErrorFactor(Double_t errorfactor,
186  Bool_t recompute = kTRUE);
187 
190  {
191  return _dparameterErrorFactor;
192  }
193 
195 
201  virtual void setParameterXMin(Double_t xmin, Bool_t recompute = kTRUE);
202 
204  Double_t getParameterXMin()
205  {
206  return _dparameterXMin;
207  }
208 
210 
218  virtual void setParameters(Double_t M, Double_t errorfactor, Double_t xmin =
219  0.0, Bool_t recompute = kTRUE);
220 
222 
235  virtual void setUnderlyingNormalParameters(Double_t mu, Double_t sigma,
236  Bool_t recompute = kTRUE);
237 
240  {
241  return _unormal->getParameterMu();
242  }
243 
246  {
247  return _unormal->getParameterSigma();
248  }
249 
251 
261  virtual void setLowerBound(Double_t val);
262 
264 
273  virtual void setUpperBound(Double_t val);
274 
276 
286  virtual void setBounds(Double_t lower, Double_t upper);
287 
289 
294  virtual void computeTheoreticalInformation();
296 
298 
301  virtual Double_t getPDF(Double_t x);
302 
304 
307  virtual Double_t getCDF(Double_t x);
308 
310 
315  virtual Double_t getInvCDF(Double_t p);
317 
318  //---------------------------------------------
322  virtual void printLog(Option_t *option = "");
324 
325 
326  ClassDef(URANIE::DataServer::TLogNormalDistribution, ID_DATASERVER)
327  //Classe de
328 };
329 
330 } // Fin du namespace DataServer
331 } // Fin du namespace URANIE
332 #endif
ROOT.
Definition: TAttribute.h:104
virtual void setLowerBound(Double_t val)
Sets the lower bound of the attribute.
virtual void setParameters(Double_t M, Double_t errorfactor, Double_t xmin=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.
virtual Double_t getCDF(Double_t x)
Returns the cumulative distribution for the value x.
void createUnderlyingNormal(Double_t M, Double_t errorfactor)
Creates the underlying normal distribution.
virtual void setUnderlyingNormalParameters(Double_t mu, Double_t sigma, Bool_t recompute=kTRUE)
Set the parameters of the underlying normal law.
virtual Double_t getPDF(Double_t x)
Returns the probability density for the value x.
Double_t getParameterMean()
Return the mean parameter.
Definition: TLogNormalDistribution.h:173
virtual void setUpperBound(Double_t val)
Sets the upper bound of the attribute.
Double_t getParameterXMin()
Return the minimum value parameter.
Definition: TLogNormalDistribution.h:204
Double_t _dparameterErrorFactor
The error factor parameter of the LogNormal law.
Definition: TLogNormalDistribution.h:98
virtual void setParameterXMin(Double_t xmin, Bool_t recompute=kTRUE)
Set the minimum value parameter.
Double_t getParameterErrorFactor()
Return the error factor parameter.
Definition: TLogNormalDistribution.h:189
Description of the class TNormalDistribution.
Definition: TNormalDistribution.h:70
Double_t getUnderlyingNormalParameterSigma()
Return the standard deviation parameter of the underlying normal law.
Definition: TLogNormalDistribution.h:245
Double_t getUnderlyingNormalParameterMu()
Return the mean parameter of the underlying normal law.
Definition: TLogNormalDistribution.h:239
virtual ~TLogNormalDistribution()
Default destructor.
Double_t getParameterSigma()
Return the mode parameter.
Definition: TNormalDistribution.h:147
Double_t _dparameterMean
The mean parameter of the LogNormal law.
Definition: TLogNormalDistribution.h:97
virtual void setBounds(Double_t lower, Double_t upper)
Sets the lower and upper bounds of the attribute.
Definition: TStochAttribut.h:369
Double_t getParameterMu()
Return the rate parameter.
Definition: TNormalDistribution.h:132
Interface of the class URANIE::DataServer::TNormalDistribution.
TNormalDistribution * _unormal
The underlying Normal law.
Definition: TLogNormalDistribution.h:95
TLogNormalDistribution()
Default constructor.
Class of attributes following a probability density function.
Description of the class TLogNormalDistribution.
Definition: TLogNormalDistribution.h:92
virtual void setParameterErrorFactor(Double_t errorfactor, Bool_t recompute=kTRUE)
Set the error factor parameter.
Description of a variable (field).
Definition: TAttribute.h:136
Double_t _dparameterXMin
The minimum value parameter of the LogNormal law.
Definition: TLogNormalDistribution.h:96
virtual void printLog()
Display information specific to this class.
virtual void computeTheoreticalInformation()
Computes the theoretical values of various statistical measures.
virtual void setParameterMean(Double_t M, Bool_t recompute=kTRUE)
Set the mean parameter.