|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.attributeSelection.ConsistencySubsetEval.hashKey
Class providing keys to the hash table.
Field Summary | |
private double[] |
attributes
Array of attribute values for an instance |
private int |
key
The key |
private boolean[] |
missing
True for an index if the corresponding attribute value is missing. |
private java.lang.String[] |
values
The values |
Constructor Summary | |
ConsistencySubsetEval.hashKey(double[] t)
Constructor for a hashKey |
|
ConsistencySubsetEval.hashKey(Instance t,
int numAtts)
Constructor for a hashKey |
Method Summary | |
boolean |
equals(java.lang.Object b)
Tests if two instances are equal |
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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private double[] attributes
private boolean[] missing
private java.lang.String[] values
private int key
Constructor Detail |
public ConsistencySubsetEval.hashKey(Instance t, int numAtts) throws java.lang.Exception
t
- an instance from which to generate a keynumAtts
- the number of attributespublic ConsistencySubsetEval.hashKey(double[] t)
t
- an array of feature valuesMethod Detail |
public java.lang.String toString(Instances t, int maxColWidth)
t
- the set of instancesmaxColWidth
- width to make the fieldspublic int hashCode()
public boolean equals(java.lang.Object b)
b
- a key to compare withpublic void print_hash_code()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |