Class ZigguratSamplerPerformance.SequentialSources
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.sampling.distribution.ZigguratSamplerPerformance.Sources
-
- org.apache.commons.rng.examples.jmh.sampling.distribution.ZigguratSamplerPerformance.SequentialSources
-
- Enclosing class:
- ZigguratSamplerPerformance
public static class ZigguratSamplerPerformance.SequentialSources extends ZigguratSamplerPerformance.Sources
The samplers to use for testing the ziggurat method with sequential sample generation. Defines the RandomSource and the sampler type.This specifically targets repeat calls to the same sampler. Performance should scale linearly with the size. A plot of size against time can identify outliers and should allow ranking of different methods.
Note: Testing using a single call to the sampler may return different relative performance of the samplers than when testing using multiple calls. This is due to the single calls being performed multiple times by the JMH framework rather than a single block of code. Rankings should be consistent and the optimal sampler method chosen using both sets of results.
-
-
Constructor Summary
Constructors Constructor Description SequentialSources()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContinuousSampler
getSampler()
void
setup()
Instantiates sampler.-
Methods inherited from class org.apache.commons.rng.examples.jmh.sampling.distribution.ZigguratSamplerPerformance.Sources
createSampler
-
-
-
-
Constructor Detail
-
SequentialSources
public SequentialSources()
-
-
Method Detail
-
getSampler
public ContinuousSampler getSampler()
- Returns:
- the sampler.
-
setup
public void setup()
Instantiates sampler.
-
-