javax.datamining.data
Class AttributeType

java.lang.Object
  |
  +--javax.datamining.Enum
        |
        +--javax.datamining.data.AttributeType
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class AttributeType
extends Enum

The enumeration AttributeType specifies the type of attribute to indicate how it is to be treated by mining algorithms. For example, an attribute whose values are integers may be treated as categorical instead of numerical.

Author:
JSR-73 Java Data Mining Expert Group
See Also:
Serialized Form

Field Summary
static AttributeType categorical
           
static AttributeType notSpecified
           
static AttributeType numerical
           
static AttributeType ordinal
           
 
Method Summary
static void addExtension(java.lang.String name)
          Adds a vendor extension name to AttributeType.
static AttributeType valueOf(java.lang.String name)
          Returns an instance of AttributeType corresponding to the specified name.
static AttributeType[] values()
          Returns a list of all AttributeType enumerations defined.
 
Methods inherited from class javax.datamining.Enum
compareTo, equals, name
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

categorical

public static final AttributeType categorical

notSpecified

public static final AttributeType notSpecified

numerical

public static final AttributeType numerical

ordinal

public static final AttributeType ordinal
Method Detail

addExtension

public static void addExtension(java.lang.String name)
                         throws JDMException
Adds a vendor extension name to AttributeType.

Parameters:
name - The name of the unique vendor extension
Throws:
JDMException - When name is an invalid string or redundant to existing standard enums.

valueOf

public static AttributeType valueOf(java.lang.String name)
                             throws JDMException
Returns an instance of AttributeType corresponding to the specified name.

Parameters:
name - The name of the enumeration value
Returns:
AttributeType - The instance of the specified enumeration.
Throws:
JDMException - When name is not valid.

values

public static AttributeType[] values()
Returns a list of all AttributeType enumerations defined.

Returns:
AttributeType[]