public class ConsistencySubsetEval.hashKey extends Object implements 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(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 hashKey(Instance t, int numAtts) throws Exception
t - an instance from which to generate a keynumAtts - the number of attributesException - if something goes wrongpublic hashKey(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 © 2021 University of Waikato, Hamilton, NZ. All rights reserved.