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 byRandomSourcevalues.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.UniformRandomProvidergetGenerator()Gets the generator.voidsetup()Look-up theRandomSourcefrom 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 theRandomSourcefrom the name and instantiates the generator.- Overrides:
 setupin classRandomSourceValues
 
 - 
 
 -