def hmean(iterable):
    a = iterable if isinstance(iterable, list) else list(iterable)
    return float(len(a)) / sum(1.0 / x for x in a)
Returns the harmonic mean of the given list of values.
dataset/ETHPy150Open clips/pattern/pattern/metrics.py/hmean