com.yosokumo.core
Enum Study.Type

java.lang.Object
  extended by java.lang.Enum<Study.Type>
      extended by com.yosokumo.core.Study.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Study.Type>
Enclosing class:
Study

public static enum Study.Type
extends java.lang.Enum<Study.Type>

Indicates the quality of the predictands associated with subjects in the study. The Type determines the type of the predictive model that will be built for the study. The type attribute may not be changed after it has been set at study creation. If the type attribute is not included in the posted study document, the default value is NUMBER.


Enum Constant Summary
CHANCE
          the predictand represents a probability given as a continuous value between zero and one inclusive.
CLASS
          the predictand is categorical and nominal.
NUMBER
          the predictand is continuous and ratio.
RANK
          the predictand is categorical, but also ordinal.
 
Method Summary
static Study.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Study.Type[] 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

CLASS

public static final Study.Type CLASS
the predictand is categorical and nominal.


RANK

public static final Study.Type RANK
the predictand is categorical, but also ordinal.


NUMBER

public static final Study.Type NUMBER
the predictand is continuous and ratio.


CHANCE

public static final Study.Type CHANCE
the predictand represents a probability given as a continuous value between zero and one inclusive.

Method Detail

values

public static Study.Type[] 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 (Study.Type c : Study.Type.values())
    System.out.println(c);

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

valueOf

public static Study.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null