Class StableSamplerPerformance.TanSource
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.sampling.distribution.StableSamplerPerformance.SamplerSource
-
- org.apache.commons.rng.examples.jmh.sampling.distribution.StableSamplerPerformance.TanSource
-
- Enclosing class:
- StableSamplerPerformance
public static class StableSamplerPerformance.TanSource extends StableSamplerPerformance.SamplerSource
Source for testing implementations of tan(x) / x. The function must work on a value in the range[0, pi/4]
.The tan(x) / x function is required for the trigonomic rearrangement of the CMS formula to create a stable random variate.
-
-
Constructor Summary
Constructors Constructor Description TanSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContinuousSampler
getSampler()
void
setup()
Instantiates sampler.-
Methods inherited from class org.apache.commons.rng.examples.jmh.sampling.distribution.StableSamplerPerformance.SamplerSource
getRNG
-
-
-
-
Constructor Detail
-
TanSource
public TanSource()
-
-
Method Detail
-
getSampler
public ContinuousSampler getSampler()
- Specified by:
getSampler
in classStableSamplerPerformance.SamplerSource
- Returns:
- the sampler.
-
setup
public void setup()
Instantiates sampler.
-
-