C# Class YAMP.Numerics.Gamma

This class contains the linear gamma function as well as complex ones and logarithmic ones.
Datei anzeigen Open project: FlorianRappl/YAMP

Public Methods

Method Description
Beta ( ScalarValue a, ScalarValue b ) : ScalarValue

Computes the complex beta function, Gamma(a) * Gamma(b) / Gamma(a+b).

Beta ( double a, double b ) : double

Computes the real beta function, Gamma(a) * Gamma(b) / Gamma(a+b).

LinearGamma ( ScalarValue z ) : ScalarValue

Computes the complex (linear) gamma function.

LinearGamma ( double x ) : double

Computes the real (linear) gamma function.

LogGamma ( ScalarValue z ) : ScalarValue

Computes the complex (log) gamma function.

LogGamma ( double x ) : double

Computes the real (log) gamma function.

Psi ( double x ) : double

Computes the real psi, usually called the digamma function, which is defined as the logarithmic derivative of the gamma function.

Private Methods

Method Description
LanczosLogGamma ( ScalarValue z ) : ScalarValue
LanczosLogGamma ( double x ) : double
LanczosPsi ( double x ) : double
LogGamma_Stirling ( ScalarValue z ) : ScalarValue
LogGamma_Stirling ( double x ) : double
Psi_Stirling ( double x ) : double

Method Details

Beta() public static method

Computes the complex beta function, Gamma(a) * Gamma(b) / Gamma(a+b).
public static Beta ( ScalarValue a, ScalarValue b ) : ScalarValue
a ScalarValue The first complex parameter.
b ScalarValue The second complex parameter.
return ScalarValue

Beta() public static method

Computes the real beta function, Gamma(a) * Gamma(b) / Gamma(a+b).
public static Beta ( double a, double b ) : double
a double The first parameter.
b double The second parameter.
return double

LinearGamma() public static method

Computes the complex (linear) gamma function.
public static LinearGamma ( ScalarValue z ) : ScalarValue
z ScalarValue The complex argument.
return ScalarValue

LinearGamma() public static method

Computes the real (linear) gamma function.
public static LinearGamma ( double x ) : double
x double The argument.
return double

LogGamma() public static method

Computes the complex (log) gamma function.
public static LogGamma ( ScalarValue z ) : ScalarValue
z ScalarValue The complex argument.
return ScalarValue

LogGamma() public static method

Computes the real (log) gamma function.
public static LogGamma ( double x ) : double
x double The argument.
return double

Psi() public static method

Computes the real psi, usually called the digamma function, which is defined as the logarithmic derivative of the gamma function.
public static Psi ( double x ) : double
x double The real argument.
return double