public final class RegularizedBeta extends Object
This class is immutable.
Modifier and Type | Method and Description |
---|---|
static double |
value(double x,
double a,
double b)
Computes the value of the
regularized beta function I(x, a, b).
|
static double |
value(double x,
double a,
double b,
double epsilon,
int maxIterations)
Computes the value of the
regularized beta function I(x, a, b).
|
public static double value(double x, double a, double b)
x
- Value.a
- Parameter a
.b
- Parameter b
.ArithmeticException
- if the algorithm fails to converge.public static double value(double x, double a, double b, double epsilon, int maxIterations)
x
- the value.a
- Parameter a
.b
- Parameter b
.epsilon
- When the absolute value of the nth item in the
series is less than epsilon the approximation ceases to calculate
further elements in the series.maxIterations
- Maximum number of "iterations" to complete.ArithmeticException
- if the algorithm fails to converge.Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.