/** * 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 (!getIgnoredAttributeIndices().equals("")) { options.add("-I"); options.add(getIgnoredAttributeIndices()); } if (m_clusterer != null) { options.add("-W"); options.add(getDensityBasedClusterer().getClass().getName()); } if ((m_clusterer != null) && (m_clusterer instanceof OptionHandler)) { String[] clustererOptions = ((OptionHandler) m_clusterer).getOptions(); if (clustererOptions.length > 0) { options.add("--"); Collections.addAll(options, clustererOptions); } } 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 (!getIgnoredAttributeIndices().equals("")) { options.add("-I"); options.add(getIgnoredAttributeIndices()); } if (m_clusterer != null) { options.add("-W"); options.add(getDensityBasedClusterer().getClass().getName()); } if ((m_clusterer != null) && (m_clusterer instanceof OptionHandler)) { String[] clustererOptions = ((OptionHandler) m_clusterer).getOptions(); if (clustererOptions.length > 0) { options.add("--"); Collections.addAll(options, clustererOptions); } } return options.toArray(new String[0]); }