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.10.0
/* @license-end */
TWeibullDistribution.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 
69 #ifndef TWEIBULLDISTRIBUTION_H
70 #define TWEIBULLDISTRIBUTION_H
71 
72 //Uranie
73 #include "TStochAttribut.h"
74 
75 namespace URANIE
76 {
77 namespace DataServer
78 {
80 {
81 private:
82  Double_t _dparameterLambda;
83  Double_t _dparameterK;
84  Double_t _dparameterXmin;
85 public:
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 
128  virtual ~TWeibullDistribution();
130 
136 
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 
177  Double_t getParameterXmin()
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 
197  virtual void computeTheoreticalInformation();
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
ROOT.
Definition: TAttribute.h:104
Double_t _dparameterLambda
The scale parameter .
Definition: TWeibullDistribution.h:82
virtual void setParameterK(Double_t k, Bool_t recompute=kTRUE)
Set the shape parameter .
Description of the class TWeibullDistribution.
Definition: TWeibullDistribution.h:79
virtual void setParameterXmin(Double_t xmin, Bool_t recompute=kTRUE)
Set the location parameter .
virtual void setParameterLambda(Double_t lambda, Bool_t recompute=kTRUE)
Set the scale parameter .
virtual Double_t getCDF(Double_t x)
Returns the cumulative distribution for the value x.
Double_t _dparameterK
The shape parameter .
Definition: TWeibullDistribution.h:83
virtual Double_t getPDF(Double_t x)
Returns the probability density for the value x.
virtual void computeTheoreticalInformation()
Computes the theoretical values of various statistical measures.
Double_t getParameterLambda()
Get the scale parameter value.
Definition: TWeibullDistribution.h:146
Definition: TStochAttribut.h:369
Double_t _dparameterXmin
The location parameter .
Definition: TWeibullDistribution.h:84
Double_t getParameterXmin()
Get the location parameter value.
Definition: TWeibullDistribution.h:177
void setParameters(Double_t lambda, Double_t k, Double_t xmin, Bool_t recompute=kTRUE)
Set all the parameters.
Class of attributes following a probability density function.
virtual ~TWeibullDistribution()
Default destructor.
Double_t getParameterK()
Get the shape parameter value.
Definition: TWeibullDistribution.h:161
Description of a variable (field).
Definition: TAttribute.h:136
virtual Double_t getInvCDF(Double_t p)
Returns the value corresponding to the cumulative density p.
virtual void printLog()
Display information specific to this class.
TWeibullDistribution()
Default constructor.