Class InverseTransformSamplingEVDRNG
java.lang.Object
dev.nm.stat.evt.evd.univariate.rng.InverseTransformSamplingEVDRNG
- All Implemented Interfaces:
RandomNumberGenerator
,Seedable
Generate random numbers according to a given univariate extreme value distribution, by
inverse transform sampling.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an instance with the given extreme value distribution.InverseTransformSamplingEVDRNG
(UnivariateEVD dist, long... seeds) Create an instance with the given extreme value distribution and seeds for this random number generator. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the next randomdouble
.void
seed
(long... seeds) Seed the random number/vector/scenario generator to produce repeatable experiments.
-
Constructor Details
-
InverseTransformSamplingEVDRNG
Create an instance with the given extreme value distribution.- Parameters:
dist
- the extreme value distribution
-
InverseTransformSamplingEVDRNG
Create an instance with the given extreme value distribution and seeds for this random number generator.- Parameters:
dist
- the extreme value distributionseeds
- the seeds
-
-
Method Details
-
nextDouble
public double nextDouble()Description copied from interface:RandomNumberGenerator
Get the next randomdouble
.- Specified by:
nextDouble
in interfaceRandomNumberGenerator
- Returns:
- the next random number
-
seed
public void seed(long... seeds) Description copied from interface:Seedable
Seed the random number/vector/scenario generator to produce repeatable experiments.
-