def calculate_deviations(metric_means):
    """
    Calculate the total deviation for a particular distribution type
    :param metric_means: the calculated means of a particular metric
    :return: total positive and total negative deviation
    """
    overlap = [1, 0.8, 0.6, 0.4, 0.2, 0]
    deviation = metric_means[0] - overlap
    pos = [round(item, 4) for item in deviation if item >= 0]
    neg = [round(abs(item), 4) for item in deviation if item < 0]
    return sum(pos), sum(neg)