Class CachedNextGenerationPerformance.BooleanSources
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.RandomSourceValues
-
- org.apache.commons.rng.examples.jmh.RandomSources
-
- org.apache.commons.rng.examples.jmh.core.CachedNextGenerationPerformance.BooleanSources
-
- Enclosing class:
- CachedNextGenerationPerformance
public static class CachedNextGenerationPerformance.BooleanSources extends RandomSources
Provides a function to obtain a boolean value from the various "RandomSource"s. It exercise the default nextBoolean() method (which may use a cache of bits) against a sign test on the native output.
-
-
Constructor Summary
Constructors Constructor Description BooleanSources()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setup()
Look-up theRandomSource
from the name and instantiates the generator.-
Methods inherited from class org.apache.commons.rng.examples.jmh.RandomSources
getGenerator
-
Methods inherited from class org.apache.commons.rng.examples.jmh.RandomSourceValues
getRandomSource
-
-
-
-
Constructor Detail
-
BooleanSources
public BooleanSources()
-
-
Method Detail
-
setup
public void setup()
Look-up theRandomSource
from the name and instantiates the generator.- Overrides:
setup
in classRandomSources
-
-