@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> options = new Vector<String>(); options.add("-C"); options.add("" + getAttributeIndex()); if (getUseMissing()) { options.add("-M"); } options.add("-P"); options.add("" + getPercent()); options.add("-S"); options.add("" + getRandomSeed()); 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>(); options.add("-C"); options.add("" + getAttributeIndex()); if (getUseMissing()) { options.add("-M"); } options.add("-P"); options.add("" + getPercent()); options.add("-S"); options.add("" + getRandomSeed()); return options.toArray(new String[0]); }