/** * Gets the current settings of the classifier. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> result = new Vector<String>(); result.add("-S"); result.add("" + getSeed()); Collections.addAll(result, super.getOptions()); return result.toArray(new String[result.size()]); }
/** * Gets the current settings of the classifier. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> result = new Vector<String>(); result.add("-S"); result.add("" + getSeed()); Collections.addAll(result, super.getOptions()); return result.toArray(new String[result.size()]); }
/** * Gets the current settings of the clusterer. * * @return an array of strings suitable for passing to setOptions() */ @Override public String[] getOptions() { Vector<String> options = new Vector<String>(); options.add("-M"); options.add("" + getMinStdDev()); if (getClusterer() != null) { options.add("-W"); options.add(getClusterer().getClass().getName()); if (m_wrappedClusterer instanceof OptionHandler) { String[] clustererOptions = ((OptionHandler) m_wrappedClusterer) .getOptions(); if (clustererOptions.length > 0) { options.add("--"); Collections.addAll(options, clustererOptions); } } } Collections.addAll(options, super.getOptions()); return options.toArray(new String[0]); }
/** * Gets the current settings of the clusterer. * * @return an array of strings suitable for passing to setOptions() */ @Override public String[] getOptions() { Vector<String> options = new Vector<String>(); options.add("-M"); options.add("" + getMinStdDev()); if (getClusterer() != null) { options.add("-W"); options.add(getClusterer().getClass().getName()); if (m_wrappedClusterer instanceof OptionHandler) { String[] clustererOptions = ((OptionHandler) m_wrappedClusterer) .getOptions(); if (clustererOptions.length > 0) { options.add("--"); Collections.addAll(options, clustererOptions); } } } Collections.addAll(options, super.getOptions()); return options.toArray(new String[0]); }