English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TWeibullDistribution.h Source File
Uranie / DataServer v4.9.0
/* @license-end */
TWeibullDistribution.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
69#ifndef TWEIBULLDISTRIBUTION_H
70#define TWEIBULLDISTRIBUTION_H
71
72//Uranie
73#include "TStochAttribut.h"
74
75namespace URANIE
76{
77namespace DataServer
78{
80{
81private:
83 Double_t _dparameterK;
84 Double_t _dparameterXmin;
85public:
86 //---------------------------------------------
90
95
97
102 TWeibullDistribution(TString name);
103
105
111 TWeibullDistribution(TString name, Double_t lambda, Double_t k = 1.0,
112 Double_t xmin = 0.0);
113
115
125 Double_t k = 1.0, Double_t xmin = 0.0);
126
130
137
143 virtual void setParameterLambda(Double_t lambda, Bool_t recompute = kTRUE);
144
147 {
148 return _dparameterLambda;
149 }
150
152
158 virtual void setParameterK(Double_t k, Bool_t recompute = kTRUE);
159
161 Double_t getParameterK()
162 {
163 return _dparameterK;
164 }
165
167
174 virtual void setParameterXmin(Double_t xmin, Bool_t recompute = kTRUE);
175
178 {
179 return _dparameterXmin;
180 }
181
183
189 void setParameters(Double_t lambda, Double_t k, Double_t xmin,
190 Bool_t recompute = kTRUE);
192
199
201
204 virtual Double_t getPDF(Double_t x);
205
207
210 virtual Double_t getCDF(Double_t x);
211
213
218 virtual Double_t getInvCDF(Double_t p);
220
221 //---------------------------------------------
225 virtual void printLog(Option_t *option = "");
227
228 ClassDef(URANIE::DataServer::TWeibullDistribution, ID_DATASERVER)
229 //Classe de
230};
231
232} // Fin du namespace DataServer
233} // Fin du namespace URANIE
234#endif
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 TWeibullDistribution.
Definition TWeibullDistribution.h:80
Double_t getParameterLambda()
Get the scale parameter value.
Definition TWeibullDistribution.h:146
Double_t getParameterXmin()
Get the location parameter value.
Definition TWeibullDistribution.h:177
Double_t getParameterK()
Get the shape parameter value.
Definition TWeibullDistribution.h:161
TWeibullDistribution(TString name, Double_t lambda, Double_t k=1.0, Double_t xmin=0.0)
Constructor setting name, scale, shape and location.
Double_t _dparameterXmin
The location parameter .
Definition TWeibullDistribution.h:84
virtual void printLog(Option_t *option="")
Double_t _dparameterLambda
The scale parameter .
Definition TWeibullDistribution.h:82
virtual Double_t getPDF(Double_t x)
Returns the probability density for the value x.
TWeibullDistribution(URANIE::DataServer::TAttribute *att, Double_t lambda, Double_t k=1.0, Double_t xmin=0.0)
Construction of a TWeibullDistribution from an existing TAttribute object.
virtual Double_t getCDF(Double_t x)
Returns the cumulative distribution for the value x.
virtual void setParameterLambda(Double_t lambda, Bool_t recompute=kTRUE)
Set the scale parameter .
virtual void setParameterXmin(Double_t xmin, Bool_t recompute=kTRUE)
Set the location parameter .
TWeibullDistribution(TString name)
Constructor setting the name.
Double_t _dparameterK
The shape parameter .
Definition TWeibullDistribution.h:83
TWeibullDistribution()
Default constructor.
virtual void computeTheoreticalInformation()
Computes the theoretical values of various statistical measures.
virtual Double_t getInvCDF(Double_t p)
Returns the value corresponding to the cumulative density p.
virtual void setParameterK(Double_t k, Bool_t recompute=kTRUE)
Set the shape parameter .
void setParameters(Double_t lambda, Double_t k, Double_t xmin, Bool_t recompute=kTRUE)
Set all the parameters.
virtual ~TWeibullDistribution()
Default destructor.
ROOT.
Definition TAttribute.h:106