def mean_general(numbers):
    """
    Calculate arithmetic mean.
    https://stackoverflow.com/questions/7716331/calculating-arithmetic-mean-one-type-of-average-in-python/7716358#7716358
    """
    return float(sum(numbers)) / max(len(numbers), 1)
