Class UnitSphereSamplerBenchmark.Sampler2D
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.sampling.UnitSphereSamplerBenchmark.SamplerData
-
- org.apache.commons.rng.examples.jmh.sampling.UnitSphereSamplerBenchmark.Sampler2D
-
- Enclosing class:
- UnitSphereSamplerBenchmark
public static class UnitSphereSamplerBenchmark.Sampler2D extends UnitSphereSamplerBenchmark.SamplerData
The 2D unit circle sampler.
-
-
Constructor Summary
Constructors Constructor Description Sampler2D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectSampler<double[]>
createSampler(org.apache.commons.rng.UniformRandomProvider rng)
Creates the sampler.-
Methods inherited from class org.apache.commons.rng.examples.jmh.sampling.UnitSphereSamplerBenchmark.SamplerData
getSampler, getSize, setup
-
-
-
-
Constructor Detail
-
Sampler2D
public Sampler2D()
-
-
Method Detail
-
createSampler
protected ObjectSampler<double[]> createSampler(org.apache.commons.rng.UniformRandomProvider rng)
Creates the sampler.- Specified by:
createSampler
in classUnitSphereSamplerBenchmark.SamplerData
- Parameters:
rng
- the source of randomness- Returns:
- the sampler
-
-