/** * Gets the minimum and maximum of the values a the first attribute of the * given data set * * @param inst the instance * @param attrIndex the index of the attribut to find min and max * @return the array with the minimum value on index 0 and the max on index 1 */ protected double[] getMinimumMaximum(Instances inst, int attrIndex) { double[] minMax = new double[2]; try { getMinMax(inst, attrIndex, minMax); } catch (Exception ex) { ex.printStackTrace(); System.out.println(ex.getMessage()); } return minMax; // double minValue = minMax[0]; // double maxValue = minMax[1]; }
/** * Gets the minimum and maximum of the values a the first attribute of the * given data set * * @param inst the instance * @param attrIndex the index of the attribut to find min and max * @return the array with the minimum value on index 0 and the max on index 1 */ protected double[] getMinimumMaximum(Instances inst, int attrIndex) { double[] minMax = new double[2]; try { getMinMax(inst, attrIndex, minMax); } catch (Exception ex) { ex.printStackTrace(); System.out.println(ex.getMessage()); } return minMax; // double minValue = minMax[0]; // double maxValue = minMax[1]; }