@ProgrammaticProperty public int getSeed() { return getRandomSeed(); }
@ProgrammaticProperty public int getSeed() { return getRandomSeed(); }
/** * 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("-S"); result.add("" + getRandomSeed()); result.add("-Z"); result.add("" + getSampleSizePercent()); if (getNoReplacement()) { result.add("-no-replacement"); if (getInvertSelection()) { result.add("-V"); } } 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("-S"); result.add("" + getRandomSeed()); result.add("-Z"); result.add("" + getSampleSizePercent()); if (getNoReplacement()) { result.add("-no-replacement"); if (getInvertSelection()) { result.add("-V"); } } return result.toArray(new String[result.size()]); }