C# Class Accord.Math.Gamma

Set of special mathematic functions.
References: Cephes Math Library, http://www.netlib.org/cephes/
ファイルを表示 Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Digamma ( double x ) : double

Digamma function.

Function ( double x ) : double

Gamma function of the specified value.

Inverse ( double a, double y ) : double

Inverse of the complemented incomplete Gamma integral (UpperIncomplete, Q).

InverseLowerIncomplete ( double a, double y ) : double

Inverse of the incomplete Gamma integral (LowerIncomplete, P).

InverseUpperIncomplete ( double a, double y ) : double

Inverse of the complemented incomplete Gamma integral (UpperIncomplete, Q).

Log ( double x ) : double

Natural logarithm of the gamma function.

Log ( double x, int p ) : double

Natural logarithm of the multivariate Gamma function.

LowerIncomplete ( double a, double x ) : double

Lower incomplete regularized gamma function P (a.k.a. the incomplete Gamma function).

This function is equivalent to P(x) = γ(s, x) / Γ(s).

Multivariate ( double x, int p ) : double

Multivariate Gamma function

Stirling ( double x ) : double

Gamma function as computed by Stirling's formula.

Trigamma ( double x ) : double

Trigamma function.

This code has been adapted from the FORTRAN77 and subsequent C code by B. E. Schneider and John Burkardt. The code had been made public under the GNU LGPL license.

UpperIncomplete ( double a, double x ) : double

Upper incomplete regularized Gamma function Q (a.k.a the incomplete complemented Gamma function)

This function is equivalent to Q(x) = Γ(s, x) / Γ(s).

Private Methods

Method Description
inverse ( double a, double y ) : double

Method Details

Digamma() public static method

Digamma function.
public static Digamma ( double x ) : double
x double
return double

Function() public static method

Gamma function of the specified value.
public static Function ( double x ) : double
x double
return double

Inverse() public static method

Inverse of the complemented incomplete Gamma integral (UpperIncomplete, Q).
public static Inverse ( double a, double y ) : double
a double
y double
return double

InverseLowerIncomplete() public static method

Inverse of the incomplete Gamma integral (LowerIncomplete, P).
public static InverseLowerIncomplete ( double a, double y ) : double
a double
y double
return double

InverseUpperIncomplete() public static method

Inverse of the complemented incomplete Gamma integral (UpperIncomplete, Q).
public static InverseUpperIncomplete ( double a, double y ) : double
a double
y double
return double

Log() public static method

Natural logarithm of the gamma function.
public static Log ( double x ) : double
x double
return double

Log() public static method

Natural logarithm of the multivariate Gamma function.
public static Log ( double x, int p ) : double
x double
p int
return double

LowerIncomplete() public static method

Lower incomplete regularized gamma function P (a.k.a. the incomplete Gamma function).
This function is equivalent to P(x) = γ(s, x) / Γ(s).
public static LowerIncomplete ( double a, double x ) : double
a double
x double
return double

Multivariate() public static method

Multivariate Gamma function
public static Multivariate ( double x, int p ) : double
x double
p int
return double

Stirling() public static method

Gamma function as computed by Stirling's formula.
public static Stirling ( double x ) : double
x double
return double

Trigamma() public static method

Trigamma function.
This code has been adapted from the FORTRAN77 and subsequent C code by B. E. Schneider and John Burkardt. The code had been made public under the GNU LGPL license.
public static Trigamma ( double x ) : double
x double
return double

UpperIncomplete() public static method

Upper incomplete regularized Gamma function Q (a.k.a the incomplete complemented Gamma function)
This function is equivalent to Q(x) = Γ(s, x) / Γ(s).
public static UpperIncomplete ( double a, double x ) : double
a double
x double
return double