Honeycomb  0.1
Component-Model Framework
Static Public Member Functions | List of all members
honey::GammaFunc_< Real > Class Template Reference

Class to evaluate Gamma and related functions. More...

#include <Gamma.h>

Static Public Member Functions

static Real gamma (Real z)
 Gamma function. More...
 
static Real gammaLn (Real z)
 ln(gamma) Useful in arithmetic because results of gamma can be large More...
 
static Real factorial (Real n)
 Factorial, N!. N can be any Real including fractional numbers. More...
 
static Real factorialLn (Real n)
 ln(N!) Useful in arithmetic because results of factorial can be large More...
 
static Real choose (Real n, Real m)
 Number of ways of choosing m objects from n distinct objects. "N choose M". Both N and M can be fractional. More...
 
static Real chooseLn (Real n, Real m)
 ln(choose()) Useful in arithmetic because results of choose can be large More...
 

Detailed Description

template<class Real>
class honey::GammaFunc_< Real >

Class to evaluate Gamma and related functions.

Member Function Documentation

template<class Real >
static Real honey::GammaFunc_< Real >::choose ( Real  n,
Real  m 
)
inlinestatic

Number of ways of choosing m objects from n distinct objects. "N choose M". Both N and M can be fractional.

template<class Real >
Real honey::GammaFunc_< Real >::chooseLn ( Real  n,
Real  m 
)
static

ln(choose()) Useful in arithmetic because results of choose can be large

template<class Real >
Real honey::GammaFunc_< Real >::factorial ( Real  n)
static

Factorial, N!. N can be any Real including fractional numbers.

If N is an integer and Real type is Double then function returns perfect accuracy in N range [0,20]. Otherwise result is approximate.

template<class Real >
Real honey::GammaFunc_< Real >::factorialLn ( Real  n)
static

ln(N!) Useful in arithmetic because results of factorial can be large

template<class Real >
static Real honey::GammaFunc_< Real >::gamma ( Real  z)
inlinestatic

Gamma function.

template<class Real >
Real honey::GammaFunc_< Real >::gammaLn ( Real  z)
static

ln(gamma) Useful in arithmetic because results of gamma can be large


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