|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.attributeSelection.ConsistencySubsetEval.hashKey
Class providing keys to the hash table.
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 |
getClass, notify, notifyAll, toString, wait, wait, wait |
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()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object b)
equals
in class java.lang.Object
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 |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London