Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.converter
Class WekaNominalAttribute<L extends ClassLabel<L>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.converter.WekaAbstractAttribute<WekaNominalAttribute<L>>
      extended by de.lmu.ifi.dbs.elki.converter.WekaNominalAttribute<L>
All Implemented Interfaces:
WekaAttribute<WekaNominalAttribute<L>>, Comparable<WekaNominalAttribute<L>>

public class WekaNominalAttribute<L extends ClassLabel<L>>
extends WekaAbstractAttribute<WekaNominalAttribute<L>>

A nominal attribute. The value is supposed to be a class label.

Author:
Arthur Zimek

Field Summary
private  L value
          Holds the value.
 
Fields inherited from interface de.lmu.ifi.dbs.elki.converter.WekaAttribute
NOMINAL, NUMERIC, STRING
 
Constructor Summary
WekaNominalAttribute(L value)
          Sets the value as a nominal attribute.
 
Method Summary
 int compareTo(WekaNominalAttribute<L> o)
          Two nominal attributes are compared by their values.
 String getValue()
          Returns the value as String representation.
 
Methods inherited from class de.lmu.ifi.dbs.elki.converter.WekaAbstractAttribute
equals, getType, hashCode, isNominal, isNumeric, isString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private L extends ClassLabel<L> value
Holds the value.

Constructor Detail

WekaNominalAttribute

public WekaNominalAttribute(L value)
Sets the value as a nominal attribute.

Parameters:
value - the value of the attribute
Method Detail

getValue

public String getValue()
Description copied from interface: WekaAttribute
Returns the value as String representation.

Returns:
a representation of the attribute value as String
See Also:
WekaAttribute.getValue()

compareTo

public int compareTo(WekaNominalAttribute<L> o)
Two nominal attributes are compared by their values.

See Also:
Comparable.compareTo(java.lang.Object)

Release 0.1 (2008-07-10_1838)