Package weka.core
Enum Capabilities.Capability
- java.lang.Object
-
- java.lang.Enum<Capabilities.Capability>
-
- weka.core.Capabilities.Capability
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Capabilities.Capability>
- Enclosing class:
- Capabilities
public static enum Capabilities.Capability extends java.lang.Enum<Capabilities.Capability>
enumeration of all capabilities
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARY_ATTRIBUTES
can handle binary attributesBINARY_CLASS
can handle binary classesDATE_ATTRIBUTES
can handle date attributesDATE_CLASS
can handle date classesEMPTY_NOMINAL_ATTRIBUTES
can handle empty nominal attributesEMPTY_NOMINAL_CLASS
can handle empty nominal classesMISSING_CLASS_VALUES
can handle missing values in class attributeMISSING_VALUES
can handle missing values in attributesNO_CLASS
can handle data without class attribute, eg clusterersNOMINAL_ATTRIBUTES
can handle nominal attributesNOMINAL_CLASS
can handle nominal classesNUMERIC_ATTRIBUTES
can handle numeric attributesNUMERIC_CLASS
can handle numeric classesONLY_MULTIINSTANCE
can handle multi-instance dataRELATIONAL_ATTRIBUTES
can handle relational attributesRELATIONAL_CLASS
can handle relational classesSTRING_ATTRIBUTES
can handle string attributesSTRING_CLASS
can handle string classesUNARY_ATTRIBUTES
can handle unary attributesUNARY_CLASS
can handle unary classes
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAttribute()
returns true if the capability is an attributeboolean
isAttributeCapability()
returns true if the capability is an attribute capabilityboolean
isClass()
returns true if the capability is a classboolean
isClassCapability()
returns true if the capability is a other capabilityboolean
isOtherCapability()
returns true if the capability is a class capabilityjava.lang.String
toString()
returns the display string of the capabilitystatic Capabilities.Capability
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Capabilities.Capability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOMINAL_ATTRIBUTES
public static final Capabilities.Capability NOMINAL_ATTRIBUTES
can handle nominal attributes
-
BINARY_ATTRIBUTES
public static final Capabilities.Capability BINARY_ATTRIBUTES
can handle binary attributes
-
UNARY_ATTRIBUTES
public static final Capabilities.Capability UNARY_ATTRIBUTES
can handle unary attributes
-
EMPTY_NOMINAL_ATTRIBUTES
public static final Capabilities.Capability EMPTY_NOMINAL_ATTRIBUTES
can handle empty nominal attributes
-
NUMERIC_ATTRIBUTES
public static final Capabilities.Capability NUMERIC_ATTRIBUTES
can handle numeric attributes
-
DATE_ATTRIBUTES
public static final Capabilities.Capability DATE_ATTRIBUTES
can handle date attributes
-
STRING_ATTRIBUTES
public static final Capabilities.Capability STRING_ATTRIBUTES
can handle string attributes
-
RELATIONAL_ATTRIBUTES
public static final Capabilities.Capability RELATIONAL_ATTRIBUTES
can handle relational attributes
-
MISSING_VALUES
public static final Capabilities.Capability MISSING_VALUES
can handle missing values in attributes
-
NO_CLASS
public static final Capabilities.Capability NO_CLASS
can handle data without class attribute, eg clusterers
-
NOMINAL_CLASS
public static final Capabilities.Capability NOMINAL_CLASS
can handle nominal classes
-
BINARY_CLASS
public static final Capabilities.Capability BINARY_CLASS
can handle binary classes
-
UNARY_CLASS
public static final Capabilities.Capability UNARY_CLASS
can handle unary classes
-
EMPTY_NOMINAL_CLASS
public static final Capabilities.Capability EMPTY_NOMINAL_CLASS
can handle empty nominal classes
-
NUMERIC_CLASS
public static final Capabilities.Capability NUMERIC_CLASS
can handle numeric classes
-
DATE_CLASS
public static final Capabilities.Capability DATE_CLASS
can handle date classes
-
STRING_CLASS
public static final Capabilities.Capability STRING_CLASS
can handle string classes
-
RELATIONAL_CLASS
public static final Capabilities.Capability RELATIONAL_CLASS
can handle relational classes
-
MISSING_CLASS_VALUES
public static final Capabilities.Capability MISSING_CLASS_VALUES
can handle missing values in class attribute
-
ONLY_MULTIINSTANCE
public static final Capabilities.Capability ONLY_MULTIINSTANCE
can handle multi-instance data
-
-
Method Detail
-
values
public static Capabilities.Capability[] 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 (Capabilities.Capability c : Capabilities.Capability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Capabilities.Capability 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 namejava.lang.NullPointerException
- if the argument is null
-
isAttribute
public boolean isAttribute()
returns true if the capability is an attribute- Returns:
- true if the capability is an attribute
-
isClass
public boolean isClass()
returns true if the capability is a class- Returns:
- true if the capability is a class
-
isAttributeCapability
public boolean isAttributeCapability()
returns true if the capability is an attribute capability- Returns:
- true if the capability is an attribute capability
-
isOtherCapability
public boolean isOtherCapability()
returns true if the capability is a class capability- Returns:
- true if the capability is a class capability
-
isClassCapability
public boolean isClassCapability()
returns true if the capability is a other capability- Returns:
- true if the capability is a other capability
-
toString
public java.lang.String toString()
returns the display string of the capability- Overrides:
toString
in classjava.lang.Enum<Capabilities.Capability>
- Returns:
- the display string
-
-