drasys.or
Class Functions

java.lang.Object
  |
  +--drasys.or.Functions
Direct Known Subclasses:
IncompleteBeta, IncompleteGamma

public class Functions
extends java.lang.Object
implements FunctionsI, java.io.Serializable

A class containing common functions not supplied in 'java.lang.Math'.

See Also:
Serialized Form

Constructor Summary
Functions()
           
 
Method Summary
 double binomialCoefficient(int n, int k)
          Returns the binomial coefficient: n!/(k!*(n-k)!)
 double lnFactorial(int x)
          Returns the natural logarithm of x factorial 'y = ln(x!)'.
 double lnGamma(double x)
          Returns the natural logarithm of the gama function of x 'y = ln(gama(x))'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Functions

public Functions()
Method Detail

binomialCoefficient

public double binomialCoefficient(int n,
                                  int k)
Returns the binomial coefficient: n!/(k!*(n-k)!)
Specified by:
binomialCoefficient in interface FunctionsI

lnGamma

public double lnGamma(double x)
Returns the natural logarithm of the gama function of x 'y = ln(gama(x))'.
Specified by:
lnGamma in interface FunctionsI

lnFactorial

public double lnFactorial(int x)
Returns the natural logarithm of x factorial 'y = ln(x!)'.
Specified by:
lnFactorial in interface FunctionsI


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com