SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.analysis.function.special
Class GammaRegularizedP

java.lang.Object
  extended by com.numericalmethod.suanshu.analysis.function.rn2r1.BivariateRealFunction
      extended by com.numericalmethod.suanshu.analysis.function.special.GammaRegularizedP
All Implemented Interfaces:
Function, RealScalarFunction

public class GammaRegularizedP
extends BivariateRealFunction

This class represents the Regularized Incomplete Gamma P function P(s, x).

              γ(s,x)
 P(s, x) = ----------- = 1 - Q(s, x)
               Γ(s)
 
s ≥ 0, x ≥ 0

The R equivalent function is pgamma. E.g., pgamma(x, s, lower=TRUE).

See Also:
Wikipedia: Regularized Gamma functions and Poisson random variables

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.numericalmethod.suanshu.analysis.function.Function
Function.EvaluationException
 
Constructor Summary
GammaRegularizedP()
           
 
Method Summary
 double evaluate(double s, double x)
          Evaluate P(s, x).
 
Methods inherited from class com.numericalmethod.suanshu.analysis.function.rn2r1.BivariateRealFunction
dimension4Domain, dimension4Range, evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GammaRegularizedP

public GammaRegularizedP()
Method Detail

evaluate

public double evaluate(double s,
                       double x)
Evaluate P(s, x).

Specified by:
evaluate in class BivariateRealFunction
Parameters:
s - s ≥ 0
x - x ≥ 0
Returns:
P(s, x)

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.