Class Zignor2005
- java.lang.Object
-
- dev.nm.stat.random.rng.univariate.normal.Zignor2005
-
- All Implemented Interfaces:
RandomStandardNormalGenerator,RandomNumberGenerator,Seedable
- Direct Known Subclasses:
StandardNormalRNG
public class Zignor2005 extends Object implements RandomStandardNormalGenerator
This is an improved version of the Ziggurat algorithm as proposed in the reference.
-
-
Constructor Summary
Constructors Constructor Description Zignor2005()Construct an improved Ziggurat random normal generator.Zignor2005(RandomLongGenerator uniform)Construct an improved Ziggurat random normal generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublenextDouble()Get the next randomdouble.voidseed(long... seeds)Seed the random number/vector/scenario generator to produce repeatable experiments.
-
-
-
Constructor Detail
-
Zignor2005
public Zignor2005(RandomLongGenerator uniform)
Construct an improved Ziggurat random normal generator.- Parameters:
uniform- a uniform random number generator
-
Zignor2005
public Zignor2005()
Construct an improved Ziggurat random normal generator.
-
-
Method Detail
-
seed
public void seed(long... seeds)
Description copied from interface:SeedableSeed the random number/vector/scenario generator to produce repeatable experiments.
-
nextDouble
public double nextDouble()
Description copied from interface:RandomNumberGeneratorGet the next randomdouble.- Specified by:
nextDoublein interfaceRandomNumberGenerator- Returns:
- the next random number
-
-