estimateLeftShift

fun estimateLeftShift(min: Double, nextSmallest: Double, max: Double, tolerance: Double = defaultZeroTolerance): Double

Uses the method described on page 360 of Law (2007) Simulation Modeling and Analysis, ISBN 0073294411, 9780073294414 The min must be strictly less than the max. The nextSmallest is x(k) where x(k) is the kth order statistic and k is the value in {2, 3, ..., n-1} such that x(k) is strictly greater than x(1).

The value tolerance is used to consider whether the computed shift value is close enough to zero to consider the shift 0.0. The default is 0.001. That is, a value of the estimated shift that is less than the tolerance is considered 0.0.

This approach estimates a shift parameter that is intended to shift the distribution to the left. If X(i) is the original datum, then the shifted data is intended to be Y(i) = X(i) - shift. Thus, the distribution is shifted to the left. The estimated shift should be a positive quantity.