edu.umd.cloud9.math
Class Gamma
java.lang.Object
edu.umd.cloud9.math.Gamma
public class Gamma
- extends Object
- Author:
- Mihai Preda, original author, Ke Zhai, add in trigamma and digamma function approximations.
|
Constructor Summary |
Gamma()
|
|
Method Summary |
static double |
digamma(double x)
Approximate digamma of x. |
static double |
lngamma(double x)
|
static double |
logGamma(double x)
Deprecated. |
static void |
main(String[] argv)
|
static double |
trigamma(double x)
Approximate the trigamma of x. |
Gamma
public Gamma()
main
public static void main(String[] argv)
digamma
public static double digamma(double x)
- Approximate digamma of x.
- Parameters:
x -
- Returns:
trigamma
public static double trigamma(double x)
- Approximate the trigamma of x.
- Parameters:
x -
- Returns:
lngamma
public static double lngamma(double x)
logGamma
public static double logGamma(double x)
- Deprecated.
- Parameters:
x -
- Returns: