Class ArrayShuffleBenchmark.ShuffleMethod
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.sampling.ArrayShuffleBenchmark.ShuffleMethod
-
- Enclosing class:
- ArrayShuffleBenchmark
public static class ArrayShuffleBenchmark.ShuffleMethod extends Object
Defines the shuffle method.
-
-
Constructor Summary
Constructors Constructor Description ShuffleMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BiConsumer<org.apache.commons.rng.UniformRandomProvider,int[]>getMethod()Gets the source of randomness.voidsetup()Look-up theArrayShuffleBenchmark.RngSourcefrom the name and instantiates the generator.
-
-
-
Constructor Detail
-
ShuffleMethod
public ShuffleMethod()
-
-
Method Detail
-
getMethod
public BiConsumer<org.apache.commons.rng.UniformRandomProvider,int[]> getMethod()
Gets the source of randomness.- Returns:
- RNG
-
setup
public void setup()
Look-up theArrayShuffleBenchmark.RngSourcefrom the name and instantiates the generator.
-
-