Class UnitSphereSamplerBenchmark
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.sampling.UnitSphereSamplerBenchmark
-
public class UnitSphereSamplerBenchmark extends Object
Executes benchmark to compare the speed of generating samples on the surface of an N-dimension unit sphere.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnitSphereSamplerBenchmark.Sampler1D
The 1D unit line sampler.static class
UnitSphereSamplerBenchmark.Sampler2D
The 2D unit circle sampler.static class
UnitSphereSamplerBenchmark.Sampler3D
The 3D unit sphere sampler.static class
UnitSphereSamplerBenchmark.Sampler4D
The 4D unit hypersphere sampler.static class
UnitSphereSamplerBenchmark.SamplerData
Base class for the sampler data.
-
Constructor Summary
Constructors Constructor Description UnitSphereSamplerBenchmark()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create1D(org.openjdk.jmh.infra.Blackhole bh, UnitSphereSamplerBenchmark.Sampler1D data)
Generation of uniform samples on a 1D unit line.void
create2D(org.openjdk.jmh.infra.Blackhole bh, UnitSphereSamplerBenchmark.Sampler2D data)
Generation of uniform samples from a 2D unit circle.void
create3D(org.openjdk.jmh.infra.Blackhole bh, UnitSphereSamplerBenchmark.Sampler3D data)
Generation of uniform samples from a 3D unit sphere.void
create4D(org.openjdk.jmh.infra.Blackhole bh, UnitSphereSamplerBenchmark.Sampler4D data)
Generation of uniform samples from a 4D unit sphere.
-
-
-
Constructor Detail
-
UnitSphereSamplerBenchmark
public UnitSphereSamplerBenchmark()
-
-
Method Detail
-
create1D
public void create1D(org.openjdk.jmh.infra.Blackhole bh, UnitSphereSamplerBenchmark.Sampler1D data)
Generation of uniform samples on a 1D unit line.- Parameters:
bh
- Data sinkdata
- Input data.
-
create2D
public void create2D(org.openjdk.jmh.infra.Blackhole bh, UnitSphereSamplerBenchmark.Sampler2D data)
Generation of uniform samples from a 2D unit circle.- Parameters:
bh
- Data sinkdata
- Input data.
-
create3D
public void create3D(org.openjdk.jmh.infra.Blackhole bh, UnitSphereSamplerBenchmark.Sampler3D data)
Generation of uniform samples from a 3D unit sphere.- Parameters:
bh
- Data sinkdata
- Input data.
-
create4D
public void create4D(org.openjdk.jmh.infra.Blackhole bh, UnitSphereSamplerBenchmark.Sampler4D data)
Generation of uniform samples from a 4D unit sphere.- Parameters:
bh
- Data sinkdata
- Input data.
-
-