SuanShu, a Java numerical and statistical library

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

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

public class GammaRegularizedQ
extends BivariateRealFunction

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

Γ(s, x) Q(s, x) = ----------- = 1 - P(s, x) Γ(s)
s ≥ 0, x ≥ 0 The algorithm for computing the regularized incomplete Gamma Q function depends on the values of s and x.

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

See Also:

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.numericalmethod.suanshu.analysis.function.Function
Function.EvaluationException
 
Constructor Summary
GammaRegularizedQ()
           
 
Method Summary
 double evaluate(double s, double x)
          Evaluate Q(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

GammaRegularizedQ

public GammaRegularizedQ()
Method Detail

evaluate

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

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

SuanShu, a Java numerical and statistical library

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