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

#include <IncompleteGamma.hh>

+ Inheritance diagram for Genfun::IncompleteGamma:

Public Member Functions

 IncompleteGamma ()
 
 IncompleteGamma (const IncompleteGamma &right)
 
virtual ~IncompleteGamma ()
 
virtual double operator() (double argument) const override
 
virtual double operator() (const Argument &arg) const override
 
Parametera ()
 
- 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 20 of file IncompleteGamma.hh.

Constructor & Destructor Documentation

◆ IncompleteGamma() [1/2]

Genfun::IncompleteGamma::IncompleteGamma ( )

Definition at line 19 of file IncompleteGamma.cc.

19 :
20 _a("a", 1.0, 0,10)
21{}

◆ IncompleteGamma() [2/2]

Genfun::IncompleteGamma::IncompleteGamma ( const IncompleteGamma right)

Definition at line 23 of file IncompleteGamma.cc.

23 :
24AbsFunction(right), _a(right._a) {
25}

◆ ~IncompleteGamma()

Genfun::IncompleteGamma::~IncompleteGamma ( )
virtual

Definition at line 27 of file IncompleteGamma.cc.

27 {
28}

Member Function Documentation

◆ a()

Parameter & Genfun::IncompleteGamma::a ( )

Definition at line 40 of file IncompleteGamma.cc.

40 {
41 return _a;
42}

◆ operator()() [1/2]

virtual double Genfun::IncompleteGamma::operator() ( const Argument arg) const
inlineoverridevirtual

Implements Genfun::AbsFunction.

Definition at line 37 of file IncompleteGamma.hh.

37{return operator() (arg[0]);}
virtual double operator()(double argument) const override

◆ operator()() [2/2]

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

Implements Genfun::AbsFunction.

Definition at line 30 of file IncompleteGamma.cc.

30 {
31
32 assert(x>=0.0 && _a.getValue() > 0.0);
33
34 if (x < (_a.getValue()+1.0))
35 return _gamser(_a.getValue(),x,_logGamma(_a.getValue()));
36 else
37 return 1.0-_gammcf(_a.getValue(),x,_logGamma(_a.getValue()));
38}
virtual double getValue() const
Definition: Parameter.cc:29

Referenced by operator()().


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