public final class BetaFun extends Object
Implementation:
Some code taken and adapted from the Java 2D Graph Package 2.4, which in turn is a port from the Cephes 2.2 Math Library (C). Most Cephes code (missing from the 2D Graph Package) directly ported.| Modifier and Type | Method and Description |
|---|---|
static double |
beta(double alpha,
double beta)
Returns the Beta function of the arguments.
|
static double |
incompleteBeta(double alpha,
double beta,
double x)
Returns the Incomplete Beta Function evaluated from zero to x.
|
static double |
lnBeta(double alpha,
double beta)
Returns the natural logarithm of the beta function.
|
public static double beta(double alpha,
double beta)
- -
| (alpha) | (beta)
Beta( alpha, beta ) = ------------------.
-
| (alpha+beta)
alpha - the alpha parameterbeta - the beta parameterpublic static double lnBeta(double alpha,
double beta)
alpha - the alpha parameterbeta - the beta parameterpublic static double incompleteBeta(double alpha,
double beta,
double x)
alpha - the alpha parameter of the beta distribution.beta - the beta parameter of the beta distribution.x - the integration end point.Copyright © 2022. All rights reserved.