def normalize(values, ratio=0.95):
    """
    calculates a normalized sum of a list of values
    uses a geometric sequence with a ratio of less than 1.
    :param values: unsorted list of values
    :param ratio: ratio of the normalizer
    :return: value
    """
    values.sort(reverse=True)
    weight = 1
    heat = 0
    for i in range(len(values)):
        heat += values[i]*weight
        weight *= ratio
    return heat