English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TLogNormalDistribution.h Source File
Uranie / DataServer v4.9.0
/* @license-end */
TLogNormalDistribution.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
81#ifndef TLOGNORMALDISTRIBUTION_H
82#define TLOGNORMALDISTRIBUTION_H
83
84//Uranie
85#include "TStochAttribut.h"
86#include "TNormalDistribution.h"
87
88namespace URANIE
89{
90namespace DataServer
91{
93{
94private:
96 Double_t _dparameterXMin;
97 Double_t _dparameterMean;
99
101
105 void createUnderlyingNormal(Double_t M, Double_t errorfactor);
106
107public:
108 //---------------------------------------------
112
117
119
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
151
153
164
170 virtual void setParameterMean(Double_t M, Bool_t recompute = kTRUE);
171
174 {
175 return _dparameterMean;
176 }
177
179
185 virtual void setParameterErrorFactor(Double_t errorfactor,
186 Bool_t recompute = kTRUE);
187
190 {
192 }
193
195
201 virtual void setParameterXMin(Double_t xmin, Bool_t recompute = kTRUE);
202
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
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
Interface of the class URANIE::DataServer::TNormalDistribution.
Class of attributes following a probability density function.
Description of a variable (field).
Definition TAttribute.h:138
Definition TStochAttribut.h:370
Description of the class TLogNormalDistribution.
Definition TLogNormalDistribution.h:93
Double_t getParameterXMin()
Return the minimum value parameter.
Definition TLogNormalDistribution.h:204
virtual Double_t getCDF(Double_t x)
Returns the cumulative distribution for the value x.
TLogNormalDistribution(TString name)
Constructor setting the name.
Double_t _dparameterErrorFactor
The error factor parameter of the LogNormal law.
Definition TLogNormalDistribution.h:98
void createUnderlyingNormal(Double_t M, Double_t errorfactor)
Creates the underlying normal distribution.
Double_t _dparameterMean
The mean parameter of the LogNormal law.
Definition TLogNormalDistribution.h:97
virtual Double_t getPDF(Double_t x)
Returns the probability density for the value x.
Double_t _dparameterXMin
The minimum value parameter of the LogNormal law.
Definition TLogNormalDistribution.h:96
Double_t getUnderlyingNormalParameterMu()
Return the mean parameter of the underlying normal law.
Definition TLogNormalDistribution.h:239
virtual void setUnderlyingNormalParameters(Double_t mu, Double_t sigma, Bool_t recompute=kTRUE)
Set the parameters of the underlying normal law.
virtual void computeTheoreticalInformation()
Computes the theoretical values of various statistical measures.
virtual ~TLogNormalDistribution()
Default destructor.
virtual void setParameterXMin(Double_t xmin, Bool_t recompute=kTRUE)
Set the minimum value parameter.
virtual void setUpperBound(Double_t val)
Sets the upper bound of the attribute.
Double_t getParameterErrorFactor()
Return the error factor parameter.
Definition TLogNormalDistribution.h:189
virtual Double_t getInvCDF(Double_t p)
Returns the value corresponding to the cumulative density p.
virtual void setLowerBound(Double_t val)
Sets the lower bound of the attribute.
TLogNormalDistribution(TString name, Double_t M, Double_t errorfactor, Double_t xmin=0.0)
Constructor setting name, mean and error factor.
virtual void setParameters(Double_t M, Double_t errorfactor, Double_t xmin=0.0, Bool_t recompute=kTRUE)
Set all the parameters.
Double_t getUnderlyingNormalParameterSigma()
Return the standard deviation parameter of the underlying normal law.
Definition TLogNormalDistribution.h:245
TLogNormalDistribution(URANIE::DataServer::TAttribute *att, Double_t M, Double_t errorfactor, Double_t xmin=0.0)
Construction of a TLogNormalDistribution from an existing TAttribute object.
virtual void printLog(Option_t *option="")
Double_t getParameterMean()
Return the mean parameter.
Definition TLogNormalDistribution.h:173
TLogNormalDistribution()
Default constructor.
virtual void setParameterErrorFactor(Double_t errorfactor, Bool_t recompute=kTRUE)
Set the error factor parameter.
virtual void setBounds(Double_t lower, Double_t upper)
Sets the lower and upper bounds of the attribute.
TNormalDistribution * _unormal
The underlying Normal law.
Definition TLogNormalDistribution.h:95
virtual void setParameterMean(Double_t M, Bool_t recompute=kTRUE)
Set the mean parameter.
Description of the class TNormalDistribution.
Definition TNormalDistribution.h:71
Double_t getParameterMu()
Return the rate parameter.
Definition TNormalDistribution.h:132
Double_t getParameterSigma()
Return the mode parameter.
Definition TNormalDistribution.h:147
ROOT.
Definition TAttribute.h:106