English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / DataServer: TCauchyDistribution.h Source File
Uranie / DataServer  v4.10.0
/* @license-end */
TCauchyDistribution.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 
57 #ifndef TCAUCHYDISTRIBUTION_H
58 #define TCAUCHYDISTRIBUTION_H
59 
60 //Uranie
61 #include "TStochAttribut.h"
62 
63 namespace URANIE
64 {
65 namespace DataServer
66 {
68 {
69 private:
70  Double_t _dparameterGamma;
71  Double_t _dparameterMedian;
72 
73 public:
74  //---------------------------------------------
78 
83 
85 
90  TCauchyDistribution(TString name);
91 
93 
98  TCauchyDistribution(TString name, Double_t gamma, Double_t median = 0.0);
99 
101 
106 
108  virtual ~TCauchyDistribution();
110 
117 
122  virtual void setParameterMedian(Double_t median, Bool_t recompute = kTRUE);
123 
126  {
127  return _dparameterMedian;
128  }
129 
131 
137  virtual void setParameterGamma(Double_t gamma, Bool_t recompute = kTRUE);
138 
140  Double_t getParameterGamma()
141  {
142  return _dparameterGamma;
143  }
144 
146 
151  virtual void setParameters(Double_t gamma, Double_t median,
152  Bool_t recompute = kTRUE);
154 
159 
165  virtual void computeTheoreticalInformation();
166 
168 
171  virtual Double_t getPDF(Double_t x);
172 
174 
177  virtual Double_t getCDF(Double_t x);
178 
180 
185  virtual Double_t getInvCDF(Double_t p);
187 
188  //---------------------------------------------
192  virtual void printLog(Option_t *option = "");
194 
195  ClassDef(URANIE::DataServer::TCauchyDistribution, ID_DATASERVER)
196  //Classe de
197 };
198 
199 } // Fin du namespace DataServer
200 } // Fin du namespace URANIE
201 #endif
ROOT.
Definition: TAttribute.h:104
TCauchyDistribution()
Default constructor.
Double_t getParameterGamma()
Return the scale parameter.
Definition: TCauchyDistribution.h:140
virtual Double_t getInvCDF(Double_t p)
Returns the value corresponding to the cumulative density p.
virtual void setParameterMedian(Double_t median, Bool_t recompute=kTRUE)
Set the location parameter.
virtual void setParameters(Double_t gamma, Double_t median, Bool_t recompute=kTRUE)
Set all the parameters.
virtual ~TCauchyDistribution()
Default destructor.
virtual Double_t getPDF(Double_t x)
Returns the probability density for the value x.
Definition: TStochAttribut.h:369
virtual void setParameterGamma(Double_t gamma, Bool_t recompute=kTRUE)
Set the scale parameter.
Class of attributes following a probability density function.
Double_t _dparameterMedian
The location parameter , a.k.a. median parameter.
Definition: TCauchyDistribution.h:71
Double_t _dparameterGamma
The scale parameter .
Definition: TCauchyDistribution.h:70
Double_t getParameterMedian()
Return the location parameter.
Definition: TCauchyDistribution.h:125
Description of the class TCauchyDistribution.
Definition: TCauchyDistribution.h:67
Description of a variable (field).
Definition: TAttribute.h:136
virtual void computeTheoreticalInformation()
Computes the theoretical values of various statistical measures.
virtual void printLog()
Display information specific to this class.
virtual Double_t getCDF(Double_t x)
Returns the cumulative distribution for the value x.