public class ConsistencySubsetEval.hashKey extends java.lang.Object implements java.io.Serializable, RevisionHandler
| Constructor and Description |
|---|
hashKey(double[] t)
Constructor for a hashKey
|
hashKey(Instance t,
int numAtts)
Constructor for a hashKey
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object b)
Tests if two instances are equal
|
java.lang.String |
getRevision()
Returns the revision string.
|
int |
hashCode()
Calculates a hash code
|
void |
print_hash_code()
Prints the hash code
|
java.lang.String |
toString(Instances t,
int maxColWidth)
Convert a hash entry to a string
|
public hashKey(Instance t, int numAtts) throws java.lang.Exception
t - an instance from which to generate a keynumAtts - the number of attributesjava.lang.Exception - if something goes wrongpublic hashKey(double[] t)
t - an array of feature valuespublic java.lang.String toString(Instances t, int maxColWidth)
t - the set of instancesmaxColWidth - width to make the fieldspublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object b)
equals in class java.lang.Objectb - a key to compare withpublic void print_hash_code()
public java.lang.String getRevision()
getRevision in interface RevisionHandler