All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.DecisionTable.hashKey

java.lang.Object
    |
    +----weka.classifiers.DecisionTable.hashKey

public class DecisionTable.hashKey
extends java.lang.Object
implements java.io.Serializable
Class providing keys to the hash table


Constructor Index

 o DecisionTable.hashKey(DecisionTable, double[])
Constructor for a hashKey
 o DecisionTable.hashKey(DecisionTable, Instance, int)
Constructor for a hashKey

Method Index

 o equals(Object)
Tests if two instances are equal
 o hashCode()
Calculates a hash code
 o print_hash_code()
Prints the hash code
 o toString(Instances, int)
Convert a hash entry to a string

Constructor Detail

 o DecisionTable.hashKey
public DecisionTable.hashKey(DecisionTable this$0,
                             Instance t,
                             int numAtts) throws java.lang.Exception
          Constructor for a hashKey
Parameters:
t - an instance from which to generate a key
numAtts - the number of attributes
 o DecisionTable.hashKey
public DecisionTable.hashKey(DecisionTable this$0,
                             double t[])
          Constructor for a hashKey
Parameters:
t - an array of feature values

Method Detail

 o toString
public java.lang.String toString(Instances t,
                       int maxColWidth)
          Convert a hash entry to a string
Parameters:
t - the set of instances
maxColWidth - width to make the fields
 o hashCode
public int hashCode()
          Calculates a hash code
Returns:
the hash code as an integer
Overrides:
hashCode in class java.lang.Object
 o equals
public boolean equals(java.lang.Object b)
          Tests if two instances are equal
Parameters:
b - a key to compare with
Overrides:
equals in class java.lang.Object
 o print_hash_code
public void print_hash_code()
          Prints the hash code

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home