SuanShu, a Java numerical and statistical library

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

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

public class BetaRegularizedInverse
extends UnivariateRealFunction

This class computes the inverse of the Regularized Incomplete Beta function.

x = B-1(p, q)(u), where 0 <= u <= 1

The R equivalent function is qbeta.

See Also:

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.numericalmethod.suanshu.analysis.function.Function
Function.EvaluationException
 
Field Summary
 double p
          the shape parameter
 double q
          the shape parameter
 
Constructor Summary
BetaRegularizedInverse(double p, double q)
          Construct an instance of B-1(p, q)(u) with the parameters p and q.
 
Method Summary
 double evaluate(double u)
          Evaluate Bx(p, q).
 
Methods inherited from class com.numericalmethod.suanshu.analysis.function.rn2r1.UnivariateRealFunction
dimension4Domain, dimension4Range, evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p

public final double p
the shape parameter


q

public final double q
the shape parameter

Constructor Detail

BetaRegularizedInverse

public BetaRegularizedInverse(double p,
                              double q)
Construct an instance of B-1(p, q)(u) with the parameters p and q.

Parameters:
p - p > 0
q - q > 0
Method Detail

evaluate

public double evaluate(double u)
Evaluate Bx(p, q).

Specified by:
evaluate in class UnivariateRealFunction
Parameters:
u - 0 <= u <= 1
Returns:
B-1(p, q)(u)

SuanShu, a Java numerical and statistical library

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