rvl.stat.dist
Class Beta
java.lang.Object
rvl.stat.dist.Beta
public class Beta
- extends java.lang.Object
The beta distribution (central and noncentral)
|
Constructor Summary |
Beta()
|
|
Method Summary |
static double |
cdf(double x,
double a,
double b)
|
static double |
cdf(double x,
double a,
double b,
double lambda)
|
static void |
main(java.lang.String[] args)
|
static double |
oldCdf(double x,
double a,
double b,
double lambda)
|
static double |
quantile(double p,
double a,
double b)
|
static double |
quantile(double p,
double a,
double b,
double lambda)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Beta
public Beta()
cdf
public static double cdf(double x,
double a,
double b)
- Returns:
- cdf at x of central Beta(a,b) distribution
oldCdf
public static double oldCdf(double x,
double a,
double b,
double lambda)
- Returns:
- cdf at x of noncentral
Beta(a, b, lambda) distribution
THIS IS THE OLD VERSION
cdf
public static double cdf(double x,
double a,
double b,
double lambda)
- Returns:
- cdf at x of noncentral
Beta(a, b, lambda) distribution
Uses Baharef/Kemeny algorithm (backward recursion between prespecified limits)
quantile
public static double quantile(double p,
double a,
double b,
double lambda)
- Returns:
- pth quantile of noncentral
Beta(a, b, lambda) distribution
quantile
public static double quantile(double p,
double a,
double b)
- Returns:
- pth quantile of Beta(a,b) distribution
main
public static void main(java.lang.String[] args)