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_ATTRIBUTEScan handle binary attributesBINARY_CLASScan handle binary classesDATE_ATTRIBUTEScan handle date attributesDATE_CLASScan handle date classesEMPTY_NOMINAL_ATTRIBUTEScan handle empty nominal attributesEMPTY_NOMINAL_CLASScan handle empty nominal classesMISSING_CLASS_VALUEScan handle missing values in class attributeMISSING_VALUEScan handle missing values in attributesNO_CLASScan handle data without class attribute, eg clusterersNOMINAL_ATTRIBUTEScan handle nominal attributesNOMINAL_CLASScan handle nominal classesNUMERIC_ATTRIBUTEScan handle numeric attributesNUMERIC_CLASScan handle numeric classesONLY_MULTIINSTANCEcan handle multi-instance dataRELATIONAL_ATTRIBUTEScan handle relational attributesRELATIONAL_CLASScan handle relational classesSTRING_ATTRIBUTEScan handle string attributesSTRING_CLASScan handle string classesUNARY_ATTRIBUTEScan handle unary attributesUNARY_CLASScan handle unary classes
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAttribute()returns true if the capability is an attributebooleanisAttributeCapability()returns true if the capability is an attribute capabilitybooleanisClass()returns true if the capability is a classbooleanisClassCapability()returns true if the capability is a other capabilitybooleanisOtherCapability()returns true if the capability is a class capabilityjava.lang.StringtoString()returns the display string of the capabilitystatic Capabilities.CapabilityvalueOf(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:
toStringin classjava.lang.Enum<Capabilities.Capability>- Returns:
- the display string
-
-