|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.rules.DecisionTableHashKey
public class DecisionTableHashKey
Class providing hash table keys for DecisionTable
Constructor Summary | |
---|---|
DecisionTableHashKey(double[] t)
Constructor for a hashKey |
|
DecisionTableHashKey(Instance t,
int numAtts,
boolean ignoreClass)
Constructor for a hashKey |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DecisionTableHashKey(Instance t, int numAtts, boolean ignoreClass) throws java.lang.Exception
t
- an instance from which to generate a keynumAtts
- the number of attributesignoreClass
- if true treat the class as a normal attribute
java.lang.Exception
- if something goes wrongpublic DecisionTableHashKey(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 fields
public 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 with
public void print_hash_code()
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |