Class RandomSources
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.RandomSourceValues
-
- org.apache.commons.rng.examples.jmh.RandomSources
-
- Direct Known Subclasses:
CachedNextGenerationPerformance.BooleanSources
,ContinuousSamplersPerformance.Sources
,DiscreteSamplersPerformance.Sources
,NextGaussianPerformance.Sources
public class RandomSources extends RandomSourceValues
A benchmark state that can retrieve the various generators defined byRandomSource
values.The state will include only those that do not require additional constructor arguments.
-
-
Constructor Summary
Constructors Constructor Description RandomSources()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.rng.UniformRandomProvider
getGenerator()
Gets the generator.void
setup()
Look-up theRandomSource
from the name and instantiates the generator.-
Methods inherited from class org.apache.commons.rng.examples.jmh.RandomSourceValues
getRandomSource
-
-
-
-
Constructor Detail
-
RandomSources
public RandomSources()
-
-
Method Detail
-
getGenerator
public org.apache.commons.rng.UniformRandomProvider getGenerator()
Gets the generator.- Returns:
- the RNG.
-
setup
public void setup()
Look-up theRandomSource
from the name and instantiates the generator.- Overrides:
setup
in classRandomSourceValues
-
-