public class Beta
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static double |
logBeta(double a,
double b)
Returns the natural logarithm of the beta function B(a, b).
|
static double |
logBeta(double a,
double b,
double epsilon,
int maxIterations)
Returns the natural logarithm of the beta function B(a, b).
|
static double |
regularizedBeta(double x,
double a,
double b)
Returns the
regularized beta function I(x, a, b).
|
static double |
regularizedBeta(double x,
double a,
double b,
double epsilon)
Returns the
regularized beta function I(x, a, b).
|
static double |
regularizedBeta(double x,
double a,
double b,
double epsilon,
int maxIterations)
Returns the regularized beta function I(x, a, b).
|
static double |
regularizedBeta(double x,
double a,
double b,
int maxIterations)
Returns the regularized beta function I(x, a, b).
|
public static double regularizedBeta(double x, double a, double b) throws MathException
x
- the value.a
- the a parameter.b
- the b parameter.MathException
- if the algorithm fails to converge.public static double regularizedBeta(double x, double a, double b, double epsilon) throws MathException
x
- the value.a
- the a parameter.b
- the b parameter.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.MathException
- if the algorithm fails to converge.public static double regularizedBeta(double x, double a, double b, int maxIterations) throws MathException
x
- the value.a
- the a parameter.b
- the b parameter.maxIterations
- Maximum number of "iterations" to complete.MathException
- if the algorithm fails to converge.public static double regularizedBeta(double x, double a, double b, double epsilon, int maxIterations) throws MathException
x
- the value.a
- the a parameter.b
- the b parameter.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.MathException
- if the algorithm fails to converge.public static double logBeta(double a, double b)
a
- the a parameter.b
- the b parameter.public static double logBeta(double a, double b, double epsilon, int maxIterations)
a
- the a parameter.b
- the b parameter.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.Copyright © 2010 - 2020 Adobe. All Rights Reserved