docs: protected double getRuleMajorityClassIndex(RuleClassification r) {
  		double maxvalue = 0.0;
  		int posMaxValue = 0;
  		for (int i = 0; i < r.obserClassDistrib.numValues(); i++) {
  			if (r.obserClassDistrib.getValue(i) > maxvalue) {
  				maxvalue = r.obserClassDistrib.getValue(i);
  				posMaxValue = i;
  			}
  		}
  		return (double)posMaxValue;
  	}