Class JumpBenchmark.JumpableSource
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.core.JumpBenchmark.BaseJumpableSource
-
- org.apache.commons.rng.examples.jmh.core.JumpBenchmark.JumpableSource
-
- Enclosing class:
- JumpBenchmark
public static class JumpBenchmark.JumpableSource extends JumpBenchmark.BaseJumpableSource
Exercise theJumpableUniformRandomProvider.jump()function.
-
-
Constructor Summary
Constructors Constructor Description JumpableSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Supplier<org.apache.commons.rng.UniformRandomProvider>createJumpFunction()Creates the jump function.-
Methods inherited from class org.apache.commons.rng.examples.jmh.core.JumpBenchmark.BaseJumpableSource
setup
-
-
-
-
Constructor Detail
-
JumpableSource
public JumpableSource()
-
-
Method Detail
-
createJumpFunction
protected Supplier<org.apache.commons.rng.UniformRandomProvider> createJumpFunction()
Creates the jump function. The jump will copy the RNG and then move forward the state of the source RNG by a large number of steps. The copy is returned.- Specified by:
createJumpFunctionin classJumpBenchmark.BaseJumpableSource- Returns:
- the copy RNG
-
-