drasys.or.prob
Class IncompleteGamma

java.lang.Object
  |
  +--drasys.or.Functions
        |
        +--drasys.or.prob.IncompleteGamma

public class IncompleteGamma
extends Functions
implements FunctionI

An implementation of the incomplete gamma function.

References:

The Art of Computer Programming: Seminumerical Algorithms (Vol 2, 3rd Ed)
    Donald Ervin Knuth; Hardcover
Numerical Recipes in C : The Art of Scientific Computing
    William H. Press, et al / Hardcover / Published 1993
Probability and Statistics
    Morris H. Degroot / Hardcover / Published 1986
Mathematical Statistics With Applications
    Dennis D. Wackerly, et al / Hardcover / Published 1996

See Also:
Serialized Form

Constructor Summary
IncompleteGamma(double a)
           
 
Method Summary
 double function(double x)
          Compute the incomplete gamma value for 'x'.
 void setEpsilon(double epsilon)
          Sets the relative error of the approximation.
 void setMaxIterations(int max)
          Sets the maximum number of iterations for the approximation.
 
Methods inherited from class drasys.or.Functions
binomialCoefficient, lnFactorial, lnGamma
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncompleteGamma

public IncompleteGamma(double a)
Method Detail

setMaxIterations

public void setMaxIterations(int max)
Sets the maximum number of iterations for the approximation.

setEpsilon

public void setEpsilon(double epsilon)
Sets the relative error of the approximation.

function

public double function(double x)
                throws ProbError
Compute the incomplete gamma value for 'x'.
Specified by:
function in interface FunctionI


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