public final class IncompleteBeta extends Object
\[ B_x(a,b) = \int_0^x t^{a-1}\,(1-t)^{b-1}\,dt \]
This code has been adapted from the Boost
c++ implementation <boost/math/special_functions/beta.hpp>.
| Modifier and Type | Method and Description |
|---|---|
static double |
complement(double x,
double a,
double b)
Computes the complement of the
incomplete beta function B(x, a, b).
|
static double |
complement(double x,
double a,
double b,
double epsilon,
int maxIterations)
Computes the complement of the
incomplete beta function B(x, a, b).
|
static double |
value(double x,
double a,
double b)
Computes the value of the
incomplete beta function B(x, a, b).
|
static double |
value(double x,
double a,
double b,
double epsilon,
int maxIterations)
Computes the value of the
incomplete beta function B(x, a, b).
|
public static double value(double x, double a, double b)
\[ B_x(a,b) = \int_0^x t^{a-1}\,(1-t)^{b-1}\,dt \]
x - Value.a - Parameter a.b - Parameter b.ArithmeticException - if the series evaluation fails to converge.public static double value(double x, double a, double b, double epsilon, int maxIterations)
\[ B_x(a,b) = \int_0^x t^{a-1}\,(1-t)^{b-1}\,dt \]
x - the value.a - Parameter a.b - Parameter b.epsilon - Tolerance in series evaluation.maxIterations - Maximum number of iterations in series evaluation.ArithmeticException - if the series evaluation fails to converge.public static double complement(double x, double a, double b)
\[ B(a, b) - B_x(a,b) = B_{1-x}(b, a) \]
where \( B(a, b) \) is the beta function.
x - Value.a - Parameter a.b - Parameter b.ArithmeticException - if the series evaluation fails to converge.public static double complement(double x, double a, double b, double epsilon, int maxIterations)
\[ B(a, b) - B_x(a,b) = B_{1-x}(b, a) \]
where \( B(a, b) \) is the beta function.
x - the value.a - Parameter a.b - Parameter b.epsilon - Tolerance in series evaluation.maxIterations - Maximum number of iterations in series evaluation.ArithmeticException - if the series evaluation fails to converge.Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.