|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.random.univariate.beta.VanDerWaerden1969
Cheng1978 is a much better algorithm.
@Deprecated public class VanDerWaerden1969
If X and Y are independent, with X ~ Γ(α,θ) and Y ~ Γ(β,θ) then X/(X+Y) ~ Beta(α,β), so one algorithm for generating beta variates is to generate X/(X+Y), where X is a gamma variate with parameters Γ(α,1) and Y is an independent gamma variate with parameters Γ(β,1).
| Constructor Summary | |
|---|---|
VanDerWaerden1969(double alpha,
double beta)
Deprecated. Construct a random number generator to sample from the beta distribution. |
|
VanDerWaerden1969(RandomGammaGenerator X,
RandomGammaGenerator Y)
Deprecated. Construct a random number generator to sample from the beta distribution. |
|
| Method Summary | |
|---|---|
double |
nextDouble()
Deprecated. Get the next random double. |
void |
seed(long... seeds)
Deprecated. Seed the random number/vector/scenario generator to produce repeatable experiments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VanDerWaerden1969(RandomGammaGenerator X,
RandomGammaGenerator Y)
X - a random gamma generatorY - a random gamma generator
public VanDerWaerden1969(double alpha,
double beta)
alpha - the gamma distribution parameter, α, for Xbeta - the gamma distribution parameter, β, for X| Method Detail |
|---|
public void seed(long... seeds)
Seedable
seed in interface Seedableseeds - the seedspublic double nextDouble()
RandomNumberGeneratordouble.
nextDouble in interface RandomNumberGenerator
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||