Class PoissonSamplersPerformance.Sources
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.sampling.distribution.PoissonSamplersPerformance.Sources
-
- Enclosing class:
- PoissonSamplersPerformance
public static class PoissonSamplersPerformance.Sources extends Object
TheDiscreteSampler
samplers to use for testing. Creates the sampler for eachRandomSource
in the defaultRandomSources
.
-
-
Constructor Summary
Constructors Constructor Description Sources()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiscreteSampler
createSampler()
Creates a new instance of the sampler.org.apache.commons.rng.UniformRandomProvider
getGenerator()
DiscreteSampler
getSampler()
Gets the sampler.void
setup()
Instantiates sampler.
-
-
-
Constructor Detail
-
Sources
public Sources()
-
-
Method Detail
-
getGenerator
public org.apache.commons.rng.UniformRandomProvider getGenerator()
- Returns:
- The RNG.
-
getSampler
public DiscreteSampler getSampler()
Gets the sampler.- Returns:
- The sampler.
-
setup
public void setup()
Instantiates sampler.
-
createSampler
public DiscreteSampler createSampler()
Creates a new instance of the sampler.- Returns:
- The sampler.
-
-