/** * Gets the current settings of ReliefFAttributeEval. * * @return an array of strings suitable for passing to setOptions() */ @Override public String[] getOptions() { Vector<String> options = new Vector<String>(); if (getWeightByDistance()) { options.add("-W"); } options.add("-M"); options.add("" + getSampleSize()); options.add("-D"); options.add("" + getSeed()); options.add("-K"); options.add("" + getNumNeighbours()); if (getWeightByDistance()) { options.add("-A"); options.add("" + getSigma()); } return options.toArray(new String[0]); }
/** * Gets the current settings of ReliefFAttributeEval. * * @return an array of strings suitable for passing to setOptions() */ @Override public String[] getOptions() { Vector<String> options = new Vector<String>(); if (getWeightByDistance()) { options.add("-W"); } options.add("-M"); options.add("" + getSampleSize()); options.add("-D"); options.add("" + getSeed()); options.add("-K"); options.add("" + getNumNeighbours()); if (getWeightByDistance()) { options.add("-A"); options.add("" + getSigma()); } return options.toArray(new String[0]); }