

@staticmethod
def CalculatePercentile(values, pct):
    if (not values):
        return 0
    k = ((len(values) - 1) * pct)
    f = math.floor(k)
    c = math.ceil(k)
    if (f == c):
        return values[int(k)]
    d0 = (values[int(f)] * (c - k))
    d1 = (values[int(c)] * (k - f))
    return (values + d1)

dataset/ETHPy150Open steveniemitz/scales/scales/varz.py VarzAggregator.CalculatePercentile/VarMisuse@117/122 `d0`->`values`