java.lang.Object
org.apache.commons.rng.sampling.distribution.LevySampler
All Implemented Interfaces:
ContinuousSampler, SharedStateContinuousSampler, SharedStateSampler<SharedStateContinuousSampler>

public final class LevySampler extends Object implements SharedStateContinuousSampler
Sampling from a Lévy distribution.
Since:
1.4
See Also:
  • Field Details

    • gaussian

      private final NormalizedGaussianSampler gaussian
      Gaussian sampler.
    • location

      private final double location
      Location.
    • scale

      private final double scale
      Scale.
    • rng

      private final UniformRandomProvider rng
      RNG (used for the toString() method).
  • Constructor Details

    • LevySampler

      private LevySampler(UniformRandomProvider rng, double location, double scale)
      Parameters:
      rng - Generator of uniformly distributed random numbers.
      location - Location of the Lévy distribution.
      scale - Scale of the Lévy distribution.
    • LevySampler

      private LevySampler(UniformRandomProvider rng, LevySampler source)
      Parameters:
      rng - Generator of uniformly distributed random numbers.
      source - Source to copy.
  • Method Details