Class UnitSphereSamplerBenchmark.Sampler1D
- java.lang.Object
 - 
- org.apache.commons.rng.examples.jmh.sampling.UnitSphereSamplerBenchmark.SamplerData
 - 
- org.apache.commons.rng.examples.jmh.sampling.UnitSphereSamplerBenchmark.Sampler1D
 
 
 
- 
- Enclosing class:
 - UnitSphereSamplerBenchmark
 
public static class UnitSphereSamplerBenchmark.Sampler1D extends UnitSphereSamplerBenchmark.SamplerData
The 1D unit line sampler. 
- 
- 
Constructor Summary
Constructors Constructor Description Sampler1D() 
- 
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
- 
Sampler1D
public Sampler1D()
 
 - 
 
- 
Method Detail
- 
createSampler
protected ObjectSampler<double[]> createSampler(org.apache.commons.rng.UniformRandomProvider rng)
Creates the sampler.- Specified by:
 createSamplerin classUnitSphereSamplerBenchmark.SamplerData- Parameters:
 rng- the source of randomness- Returns:
 - the sampler
 
 
 - 
 
 -