def mean(iterable):
    a = iterable if isinstance(iterable, list) else list(iterable)
    return float(sum(a)) / (len(a) or 1)
Returns the arithmetic mean of the given list of values.
dataset/ETHPy150Open clips/pattern/pattern/metrics.py/mean