class GiniImpurityMeasureCalculator extends ImpurityMeasureCalculator<GiniImpurityMeasure> {

    int getLabelCode(double lb) {
        Integer code = lbEncoder.get(lb);

        assert code != null : "Can't find code for label " + lb;

        return code;
    }

    public  GiniImpurityMeasureCalculator(Map<Double, Integer> lbEncoder, boolean useIdx);

}