static calculateMaskPenalty(matrix) {
        return MaskUtil.applyMaskPenaltyRule1(matrix)
            + MaskUtil.applyMaskPenaltyRule2(matrix)
            + MaskUtil.applyMaskPenaltyRule3(matrix)
            + MaskUtil.applyMaskPenaltyRule4(matrix);
    }
// Basically it applies four rules and summate all penalties.
Basically it applies four rules and summate all penalties.
Basically it applies four rules and summate all penalties .
static calculateMaskPenalty(matrix) {
        return MaskUtil.applyMaskPenaltyRule1(matrix)
            + MaskUtil.applyMaskPenaltyRule2(matrix)
            + MaskUtil.applyMaskPenaltyRule3(matrix)
            + MaskUtil.applyMaskPenaltyRule4(matrix);
    }
static calculateMaskPenalty ( matrix ) { return MaskUtil . applyMaskPenaltyRule1 ( matrix ) + MaskUtil . applyMaskPenaltyRule2 ( matrix ) + MaskUtil . applyMaskPenaltyRule3 ( matrix ) + MaskUtil . applyMaskPenaltyRule4 ( matrix ) ; }
Basically it applies four rules and summate all penalties.
Basically it applies four rules and summate all penalties .