Class LogNormal

  • All Implemented Interfaces:
    DelayDistribution

    public final class LogNormal
    extends java.lang.Object
    implements DelayDistribution
    Returns log normally distributed values. Takes two parameters, the median (50th percentile) of the lognormal and the standard deviation of the underlying normal distribution.

    The larger the standard deviation the longer the tails.

    See Also:
    lognormal example
    • Constructor Summary

      Constructors 
      Constructor Description
      LogNormal​(double median, double sigma)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long sampleMillis()
      Samples a delay in milliseconds from the distribution.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogNormal

        public LogNormal​(double median,
                         double sigma)
        Parameters:
        median - 50th percentile of the distribution in millis
        sigma - standard deviation of the distribution, a larger value produces a longer tail
    • Method Detail

      • sampleMillis

        public long sampleMillis()
        Description copied from interface: DelayDistribution
        Samples a delay in milliseconds from the distribution.
        Specified by:
        sampleMillis in interface DelayDistribution
        Returns:
        next delay in millis