smallrange
Smallrange is a statistical measure of dispersion that concentrates on the most compact cluster of observations in a data set. For a data set X with n observations and a chosen proportion p in (0,1], smallrange_p(X) is defined as the width of the smallest interval [a, b] that contains at least p·n data points. Equivalently, it is the minimum possible b − a such that at least p·n points lie in [a, b].
To compute, sort the data, then slide a window of length k = ceil(p·n) across the sorted array,
Applications of smallrange include assessing clustering strength within a data set, comparing distributions on different scales,
Limitations include dependence on the chosen p, potential instability for small samples, and the possibility that