SuanShu, a Java numerical and statistical library

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

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

public class Beta
extends BivariateRealFunction

This class represents the Beta function B(x, y).

             Γ(x)Γ(y)    /1
 B(x, y) = ----------- = | tx-1 (1 - t)y - 1 dt
              Γ(x+y)     /0
 
x > 0, y > 0

The R equivalent function is beta.

See Also:
Wikipedia: Beta function

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

Beta

public Beta()
Method Detail

evaluate

public double evaluate(double x,
                       double y)
Compute B(x, y).

Specified by:
evaluate in class BivariateRealFunction
Parameters:
x - x > 0
y - y > 0
Returns:
B(x, y)

SuanShu, a Java numerical and statistical library

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