Class Beta


  • public final class Beta
    extends Object
    Beta function.

    B(a,b)=Γ(a) Γ(b)Γ(a+b)=(a1)! (b1)!(a+b1)!

    where Γ(z) is the gamma function.

    This code has been adapted from the Boost c++ implementation <boost/math/special_functions/beta.hpp>.

    Since:
    1.1
    See Also:
    Boost C++ Beta function
    • Method Detail

      • value

        public static double value​(double a,
                                   double b)
        Computes the value of the beta function B(a, b).

        B(a,b)=Γ(a) Γ(b)Γ(a+b)

        where Γ(z) is the gamma function.

        Parameters:
        a - Parameter a.
        b - Parameter b.
        Returns:
        the beta function B(a,b).