@staticmethod
def _linear_combination_of_reports(weights, report):
    """Compute the linear combination for ranking."""
    total_weight = 0
    combination = 0
    for property, weight in weights.items():
        total_weight += weight
        combination += report[property]
    return combination / total_weight
