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

#include <BetaDistribution.hh>

+ Inheritance diagram for Genfun::BetaDistribution:

Public Member Functions

 BetaDistribution ()
 
 BetaDistribution (const BetaDistribution &right)
 
virtual ~BetaDistribution ()
 
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 BetaDistribution.hh.

Constructor & Destructor Documentation

◆ BetaDistribution() [1/2]

Genfun::BetaDistribution::BetaDistribution ( )

Definition at line 14 of file BetaDistribution.cc.

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

◆ BetaDistribution() [2/2]

Genfun::BetaDistribution::BetaDistribution ( const BetaDistribution right)

Definition at line 19 of file BetaDistribution.cc.

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

◆ ~BetaDistribution()

Genfun::BetaDistribution::~BetaDistribution ( )
virtual

Definition at line 26 of file BetaDistribution.cc.

26 {
27}

Member Function Documentation

◆ alpha()

Parameter & Genfun::BetaDistribution::alpha ( )

Definition at line 36 of file BetaDistribution.cc.

36 {
37 return _alpha;
38}

◆ beta()

Parameter & Genfun::BetaDistribution::beta ( )

Definition at line 41 of file BetaDistribution.cc.

41 {
42 return _beta;
43}

◆ operator()() [1/2]

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

Implements Genfun::AbsFunction.

Definition at line 38 of file BetaDistribution.hh.

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

◆ operator()() [2/2]

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

Implements Genfun::AbsFunction.

Definition at line 29 of file BetaDistribution.cc.

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

Referenced by operator()().


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