net.sf.javaml.utils
Class GammaFunction

java.lang.Object
  extended by net.sf.javaml.utils.GammaFunction

public class GammaFunction
extends java.lang.Object


Constructor Summary
GammaFunction()
           
 
Method Summary
static double gamma(double x)
          Returns the Gamma function of the argument.
static double logGamma(double x)
          Returns the natural logarithm of the gamma function; formerly named lgamma.
static double stirlingFormula(double x)
          Returns the Gamma function computed by Stirling's formula; formerly named stirf.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GammaFunction

public GammaFunction()
Method Detail

stirlingFormula

public static double stirlingFormula(double x)
                              throws java.lang.ArithmeticException
Returns the Gamma function computed by Stirling's formula; formerly named stirf. The polynomial STIR is valid for 33 <= x <= 172.

Throws:
java.lang.ArithmeticException

gamma

public static double gamma(double x)
                    throws java.lang.ArithmeticException
Returns the Gamma function of the argument.

Throws:
java.lang.ArithmeticException

logGamma

public static double logGamma(double x)
                       throws java.lang.ArithmeticException
Returns the natural logarithm of the gamma function; formerly named lgamma.

Throws:
java.lang.ArithmeticException


Copyright © 2006-2010 - Thomas Abeel - All Rights Reserved. SourceForge.netLogo