class PatternViolationsWeightFunction implements ViolationWeightFunction {

    @Override
    public double getWeight(Overlap violation, Overlaps overlaps, Model model) {
        return 1.0 / overlaps.getViolationsOfSamePattern(violation).size();
    }

}