CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Genfun::GammaDistribution Class Reference

#include <GammaDistribution.hh>

+ Inheritance diagram for Genfun::GammaDistribution:

Public Member Functions

 GammaDistribution ()
 
 GammaDistribution (const GammaDistribution &right)
 
virtual ~GammaDistribution ()
 
virtual double operator() (double argument) const override
 
virtual double operator() (const Argument &a) const override
 
Parameteralpha ()
 
Parameterbeta ()
 
- Public Member Functions inherited from Genfun::AbsFunction
 AbsFunction ()
 
 AbsFunction (const AbsFunction &right)
 
virtual ~AbsFunction ()
 
virtual unsigned int dimensionality () const
 
virtual double operator() (double argument) const =0
 
virtual double operator() (const Argument &argument) const =0
 
virtual AbsFunctionclone () const =0
 
virtual FunctionComposition operator() (const AbsFunction &f) const
 
virtual ParameterComposition operator() (const AbsParameter &p) const
 
Derivative derivative (const Variable &v) const
 
Derivative prime () const
 
virtual bool hasAnalyticDerivative () const
 
virtual Derivative partial (unsigned int) const
 

Detailed Description

Author

Definition at line 21 of file GammaDistribution.hh.

Constructor & Destructor Documentation

◆ GammaDistribution() [1/2]

Genfun::GammaDistribution::GammaDistribution ( )

Definition at line 15 of file GammaDistribution.cc.

15 :
16 _alpha("a", 2.0, 1.0, 100),
17 _beta ("beta", 0.0, 0, 100)
18{}

◆ GammaDistribution() [2/2]

Genfun::GammaDistribution::GammaDistribution ( const GammaDistribution right)

Definition at line 20 of file GammaDistribution.cc.

20 :
21AbsFunction(right),
22_alpha(right._alpha),
23_beta (right._beta)
24{
25}

◆ ~GammaDistribution()

Genfun::GammaDistribution::~GammaDistribution ( )
virtual

Definition at line 27 of file GammaDistribution.cc.

27 {
28}

Member Function Documentation

◆ alpha()

Parameter & Genfun::GammaDistribution::alpha ( )

Definition at line 37 of file GammaDistribution.cc.

37 {
38 return _alpha;
39}

◆ beta()

Parameter & Genfun::GammaDistribution::beta ( )

Definition at line 42 of file GammaDistribution.cc.

42 {
43 return _beta;
44}

◆ operator()() [1/2]

virtual double Genfun::GammaDistribution::operator() ( const Argument a) const
inlineoverridevirtual

Implements Genfun::AbsFunction.

Definition at line 38 of file GammaDistribution.hh.

38{return operator() (a[0]);}
virtual double operator()(double argument) const override

◆ operator()() [2/2]

double Genfun::GammaDistribution::operator() ( double  argument) const
overridevirtual

Implements Genfun::AbsFunction.

Definition at line 30 of file GammaDistribution.cc.

30 {
31 return std::pow(x,_alpha.getValue()-1)*
32 exp(-x/_beta.getValue())/std::pow(_beta.getValue(),(_alpha.getValue()))/
33 exp(_logGamma(_alpha.getValue()));
34
35}
virtual double getValue() const
Definition: Parameter.cc:29

Referenced by operator()().


The documentation for this class was generated from the following files: