Class UnitBallSamplerBenchmark.Sampler3D
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.sampling.shape.UnitBallSamplerBenchmark.SamplerData
-
- org.apache.commons.rng.examples.jmh.sampling.shape.UnitBallSamplerBenchmark.Sampler3D
-
- Enclosing class:
- UnitBallSamplerBenchmark
public static class UnitBallSamplerBenchmark.Sampler3D extends UnitBallSamplerBenchmark.SamplerData
The 3D unit ball 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.shape.UnitBallSamplerBenchmark.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 classUnitBallSamplerBenchmark.SamplerData
- Parameters:
rng
- the source of randomness- Returns:
- the sampler
-
-