Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.converter
Class WekaNumericAttribute

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

public class WekaNumericAttribute
extends WekaAbstractAttribute<WekaNumericAttribute>

A numeric attribute.

Author:
Arthur Zimek

Field Summary
private  Double value
          Holds the value.
 
Fields inherited from interface de.lmu.ifi.dbs.elki.converter.WekaAttribute
NOMINAL, NUMERIC, STRING
 
Constructor Summary
WekaNumericAttribute(double value)
          Sets the given value as numeric value.
 
Method Summary
 int compareTo(WekaNumericAttribute o)
          Two numeric 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 Double value
Holds the value.

Constructor Detail

WekaNumericAttribute

public WekaNumericAttribute(double value)
Sets the given value as numeric value.

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(WekaNumericAttribute o)
Two numeric attributes are compared by their values.

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

Release 0.1 (2008-07-10_1838)