Class VanDerWaerden1969
- java.lang.Object
-
- dev.nm.stat.random.rng.univariate.beta.VanDerWaerden1969
-
- All Implemented Interfaces:
RandomBetaGenerator
,RandomNumberGenerator
,Seedable
@Deprecated public class VanDerWaerden1969 extends Object implements RandomBetaGenerator
Deprecated.Cheng1978
is a much better algorithm.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
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description double
nextDouble()
Deprecated.Get the next randomdouble
.void
seed(long... seeds)
Deprecated.Seed the random number/vector/scenario generator to produce repeatable experiments.
-
-
-
Constructor Detail
-
VanDerWaerden1969
public VanDerWaerden1969(RandomGammaGenerator X, RandomGammaGenerator Y)
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 Detail
-
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
-
-