Class LogNormal
java.lang.Object
com.github.tomakehurst.wiremock.http.LogNormal
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Samples a delay in milliseconds from the distribution.
-
Constructor Details
-
LogNormal
public LogNormal(double median, double sigma) - Parameters:
median
- 50th percentile of the distribution in millissigma
- standard deviation of the distribution, a larger value produces a longer tail
-
-
Method Details
-
sampleMillis
public long sampleMillis()Description copied from interface:DelayDistribution
Samples a delay in milliseconds from the distribution.- Specified by:
sampleMillis
in interfaceDelayDistribution
- Returns:
- next delay in millis
-