/** * Gets the current settings of the filter. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> options = new Vector<String>(); if (getBinaryAttributesNominal()) { options.add("-N"); } if (getTransformAllValues()) { options.add("-A"); } if (!getAttributeIndices().equals("")) { options.add("-R"); options.add(getAttributeIndices()); } if (getInvertSelection()) { options.add("-V"); } if (getSpreadAttributeWeight()) { options.add("-spread-attribute-weight"); } return options.toArray(new String[0]); }
/** * Gets the current settings of the filter. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> options = new Vector<String>(); if (getBinaryAttributesNominal()) { options.add("-N"); } if (getTransformAllValues()) { options.add("-A"); } if (!getAttributeIndices().equals("")) { options.add("-R"); options.add(getAttributeIndices()); } if (getInvertSelection()) { options.add("-V"); } if (getSpreadAttributeWeight()) { options.add("-spread-attribute-weight"); } return options.toArray(new String[0]); }