Class UnitSphereSamplerBenchmark.Sampler3D
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.sampling.UnitSphereSamplerBenchmark.SamplerData
-
- org.apache.commons.rng.examples.jmh.sampling.UnitSphereSamplerBenchmark.Sampler3D
-
- Enclosing class:
- UnitSphereSamplerBenchmark
public static class UnitSphereSamplerBenchmark.Sampler3D extends UnitSphereSamplerBenchmark.SamplerData
The 3D unit sphere sampler.
-
-
Constructor Summary
Constructors Constructor Description Sampler3D()
-
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
-
Sampler3D
public Sampler3D()
-
-
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
-
-