/** * 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 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> result = new Vector<String>(); result.add("-W"); result.add(getClusterer().getClass().getName()); Collections.addAll(result, super.getOptions()); if (getClusterer() instanceof OptionHandler) { String[] options = ((OptionHandler) getClusterer()).getOptions(); if (options.length > 0) { result.add("--"); } Collections.addAll(result, options); } 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> result = new Vector<String>(); result.add("-W"); result.add(getClusterer().getClass().getName()); Collections.addAll(result, super.getOptions()); if (getClusterer() instanceof OptionHandler) { String[] options = ((OptionHandler) getClusterer()).getOptions(); if (options.length > 0) { result.add("--"); } Collections.addAll(result, options); } return result.toArray(new String[result.size()]); }
.joinOptions(m_DistanceFunction.getOptions())).trim()); Collections.addAll(options, super.getOptions());
.joinOptions(m_DistanceFunction.getOptions())).trim()); Collections.addAll(options, super.getOptions());
String[] prevOptions = clusterer.getOptions();