model
Class DataPoint

java.lang.Object
  |
  +--model.DataPoint
All Implemented Interfaces:
java.io.Serializable

public class DataPoint
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
DataPoint()
          Constructor Create a new DataPoint
 
Method Summary
 void addNormalizedValue(Attribute attribute, double value)
          set the normalized value of a datapoint accoriding to the name of an attribute
 void addOriginalValue(Attribute attribute, java.lang.String value)
          set the original value of a datapoint accoriding to the name of an attribute
 double getNormalizedValue(Attribute attribute)
          get the normalized value of a datapoint by providing the name of an attribute
 java.lang.String getOriginalValue(Attribute attribute)
          get the original value of a datapoint by providing the name of an attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataPoint

public DataPoint()
Constructor Create a new DataPoint
Method Detail

getOriginalValue

public java.lang.String getOriginalValue(Attribute attribute)
get the original value of a datapoint by providing the name of an attribute
Parameters:
attribute - an attribute of this datapoint
Returns:
the original value of this DataPoint

getNormalizedValue

public double getNormalizedValue(Attribute attribute)
get the normalized value of a datapoint by providing the name of an attribute
Parameters:
attribute - an attribute of this datapoint
Returns:
the normalized value of this datapoint

addOriginalValue

public void addOriginalValue(Attribute attribute,
                             java.lang.String value)
set the original value of a datapoint accoriding to the name of an attribute
Parameters:
attr - the attribute related to this datapoint
value - the original value of this datapoint given the attribute

addNormalizedValue

public void addNormalizedValue(Attribute attribute,
                               double value)
set the normalized value of a datapoint accoriding to the name of an attribute
Parameters:
attr - the attribute related to this datapoint
value - the normalized value of this datapoint given the attribute