/** * Gets the current settings of the filter. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> result = new Vector<String>(); result.add("-R"); result.add("" + getVarianceCovered()); result.add("-A"); result.add("" + getMaximumAttributeNames()); result.add("-M"); result.add("" + getMaximumAttributes()); if (getCenterData()) { result.add("-C"); } return result.toArray(new String[result.size()]); }
/** * Gets the current settings of the filter. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> result = new Vector<String>(); result.add("-R"); result.add("" + getVarianceCovered()); result.add("-A"); result.add("" + getMaximumAttributeNames()); result.add("-M"); result.add("" + getMaximumAttributes()); if (getCenterData()) { result.add("-C"); } return result.toArray(new String[result.size()]); }