def kurtosis(iterable, sample=False):
    a = iterable if isinstance(iterable, list) else list(iterable)
    return moment(a, 4, sample) / (moment(a, 2, sample) ** 2.0 or 1) - 3

#a = 1
#b = 1000
#U = [float(i-a)/(b-a) for i in xrange(a,b)] # uniform distribution
#print(abs(-1.2 - kurtosis(U)) < 0.0001)

#--- QUANTILE --------------------------------------------------------------------------------------
Returns the degree of peakedness of the given list of values:
dataset/ETHPy150Open clips/pattern/pattern/metrics.py/kurtosis