public class DecisionTableHashKey extends Object implements Serializable, RevisionHandler
| Constructor and Description |
|---|
DecisionTableHashKey(double[] t)
Constructor for a hashKey
|
DecisionTableHashKey(Instance t,
int numAtts,
boolean ignoreClass)
Constructor for a hashKey
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object b)
Tests if two instances are equal
|
String |
getRevision()
Returns the revision string.
|
int |
hashCode()
Calculates a hash code
|
void |
print_hash_code()
Prints the hash code
|
String |
toString(Instances t,
int maxColWidth)
Convert a hash entry to a string
|
public DecisionTableHashKey(Instance t, int numAtts, boolean ignoreClass) throws Exception
t - an instance from which to generate a keynumAtts - the number of attributesignoreClass - if true treat the class as a normal attributeException - if something goes wrongpublic DecisionTableHashKey(double[] t)
t - an array of feature valuespublic String toString(Instances t, int maxColWidth)
t - the set of instancesmaxColWidth - width to make the fieldspublic int hashCode()
public boolean equals(Object b)
public void print_hash_code()
public String getRevision()
getRevision in interface RevisionHandlerCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.