Class VanDerWaerden1969
java.lang.Object
dev.nm.stat.random.rng.univariate.beta.VanDerWaerden1969
- All Implemented Interfaces:
RandomBetaGenerator
,RandomNumberGenerator
,Seedable
Deprecated.
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
ConstructorsConstructorDescriptionVanDerWaerden1969
(double alpha, double beta) Deprecated.Construct a random number generator to sample from the beta distribution.Deprecated.Construct a random number generator to sample from the beta distribution. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Deprecated.Get the next randomdouble
.void
seed
(long... seeds) Deprecated.Seed the random number/vector/scenario generator to produce repeatable experiments.
-
Constructor Details
-
VanDerWaerden1969
Deprecated.Construct a random number generator to sample from the beta distribution.- Parameters:
X
- a random gamma generatorY
- a random gamma generator
-
VanDerWaerden1969
public VanDerWaerden1969(double alpha, double beta) Deprecated.Construct a random number generator to sample from the beta distribution.- Parameters:
alpha
- the gamma distribution parameter, α, for Xbeta
- the gamma distribution parameter, β, for X
-
-
Method Details
-
seed
public void seed(long... seeds) Deprecated.Description copied from interface:Seedable
Seed the random number/vector/scenario generator to produce repeatable experiments. -
nextDouble
public double nextDouble()Deprecated.Description copied from interface:RandomNumberGenerator
Get the next randomdouble
.- Specified by:
nextDouble
in interfaceRandomNumberGenerator
- Returns:
- the next random number
-
Cheng1978
is a much better algorithm.