edu.umd.cloud9.math
Class Gamma

java.lang.Object
  extended by 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gamma

public Gamma()
Method Detail

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: