aima.learning.framework
Class Example

java.lang.Object
  extended by aima.learning.framework.Example

public class Example
extends java.lang.Object


Constructor Summary
Example(java.util.Hashtable<java.lang.String,Attribute> attributes, Attribute targetAttribute)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 double getAttributeValueAsDouble(java.lang.String attributeName)
           
 java.lang.String getAttributeValueAsString(java.lang.String attributeName)
           
 int hashCode()
           
 Example numerize(java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.lang.Integer>> attrValueToNumber)
           
 java.lang.String targetValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Example

public Example(java.util.Hashtable<java.lang.String,Attribute> attributes,
               Attribute targetAttribute)
Method Detail

getAttributeValueAsString

public java.lang.String getAttributeValueAsString(java.lang.String attributeName)

getAttributeValueAsDouble

public double getAttributeValueAsDouble(java.lang.String attributeName)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

targetValue

public java.lang.String targetValue()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

numerize

public Example numerize(java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.lang.Integer>> attrValueToNumber)