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
TheDiscreteSamplersamplers to use for testing. Creates the sampler for eachRandomSourcein the defaultRandomSources.
-
-
Constructor Summary
Constructors Constructor Description Sources()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiscreteSamplercreateSampler()Creates a new instance of the sampler.org.apache.commons.rng.UniformRandomProvidergetGenerator()DiscreteSamplergetSampler()Gets the sampler.voidsetup()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.
-
-