org.knime.base.node.preproc.sample
Enum SamplingNodeSettings.SamplingMethods

java.lang.Object
  extended by java.lang.Enum<SamplingNodeSettings.SamplingMethods>
      extended by org.knime.base.node.preproc.sample.SamplingNodeSettings.SamplingMethods
All Implemented Interfaces:
Serializable, Comparable<SamplingNodeSettings.SamplingMethods>
Enclosing class:
SamplingNodeSettings

public static enum SamplingNodeSettings.SamplingMethods
extends Enum<SamplingNodeSettings.SamplingMethods>

Enum for the four different sampling methods.


Enum Constant Summary
First
          Selects the first x rows.
Linear
          Select the rows linearly over the whole table.
Random
          Selects rows randomly.
Stratified
          Select rows randomly but maintain the class distribution.
 
Method Summary
static SamplingNodeSettings.SamplingMethods valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SamplingNodeSettings.SamplingMethods[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

First

public static final SamplingNodeSettings.SamplingMethods First
Selects the first x rows.


Random

public static final SamplingNodeSettings.SamplingMethods Random
Selects rows randomly.


Stratified

public static final SamplingNodeSettings.SamplingMethods Stratified
Select rows randomly but maintain the class distribution.


Linear

public static final SamplingNodeSettings.SamplingMethods Linear
Select the rows linearly over the whole table.

Method Detail

values

public static SamplingNodeSettings.SamplingMethods[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SamplingNodeSettings.SamplingMethods c : SamplingNodeSettings.SamplingMethods.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SamplingNodeSettings.SamplingMethods valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.