|
SSJ V. 1.1.9. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.iro.lecuyer.probdist.ContinuousDistribution
umontreal.iro.lecuyer.probdist.BetaDist
umontreal.iro.lecuyer.probdist.BetaSymmetricalDist
public class BetaSymmetricalDist
Specializes the class BetaDist to the case of a symmetrical
beta distribution over the interval [0, 1],
with shape parameters
α = β.
A faster inversion method is implemented here for this special case.
Because of the symmetry around 1/2, four series are used to compute the
cdf, two around x = 0 and two around x = 1/2.
Given u, one then solves each series for x by using the
Newton-Raphson method which shows quadratic convergence when the
starting iterate is close enough to the solution x.
| Field Summary |
|---|
| Fields inherited from class umontreal.iro.lecuyer.probdist.ContinuousDistribution |
|---|
decPrec |
| Constructor Summary | |
|---|---|
BetaSymmetricalDist(double alpha)
Constructs a BetaSymmetricalDist object with parameters α = β = alpha, over the unit interval (0, 1). |
|
BetaSymmetricalDist(double alpha,
int d)
Same as BetaSymmetricalDist (alpha), but using approximations of roughly d decimal digits of precision when computing the distribution, complementary distribution, and inverse functions. |
|
| Method Summary | |
|---|---|
static double |
barF(double alpha,
int d,
double x)
Same as barF (alpha, beta, d, x). |
double |
cdf(double x)
Computes and returns the distribution function F(x). |
static double |
cdf(double alpha,
int d,
double x)
Same as cdf (alpha, alpha, d, x). |
static double |
density(double alpha,
double x)
Returns the density evaluated at x. |
double |
inverseF(double u)
Computes and returns the inverse distribution function F-1(u), defined in. |
static double |
inverseF(double alpha,
double u)
Returns the inverse distribution function evaluated at u, for the symmetrical beta distribution over the interval [0, 1], with shape parameters 0 < α = β = alpha. |
void |
setParams(double alpha,
double beta,
double a,
double b,
int d)
|
| Methods inherited from class umontreal.iro.lecuyer.probdist.BetaDist |
|---|
barF, barF, cdf, cdf, density, density, density, getA, getAlpha, getB, getBeta, inverseF, inverseF |
| Methods inherited from class umontreal.iro.lecuyer.probdist.ContinuousDistribution |
|---|
barF, inverseBisection, inverseBrent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BetaSymmetricalDist(double alpha)
public BetaSymmetricalDist(double alpha,
int d)
| Method Detail |
|---|
public double cdf(double x)
Distribution
cdf in interface Distributioncdf in class BetaDistx - value at which the distribution function is evaluated
public double inverseF(double u)
Distribution
inverseF in interface DistributioninverseF in class BetaDistu - value in the interval (0, 1) for which the inverse
distribution function is evaluated
public static double density(double alpha,
double x)
public static double cdf(double alpha,
int d,
double x)
cdf (alpha, alpha, d, x).
public static double barF(double alpha,
int d,
double x)
barF (alpha, beta, d, x).
public static double inverseF(double alpha,
double u)
public void setParams(double alpha,
double beta,
double a,
double b,
int d)
setParams in class BetaDist
|
SSJ V. 1.1.9. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||