class PatternSizeWeightFunction implements ViolationWeightFunction {

    @Override
    public double getWeight(Overlap violation, Overlaps overlaps, Model model) {
        return Math.log10(getPatternWeight(violation)) / Math.log10(getMaxPatternWeight(model));
    }

}