ConsistencySubsetEval.hashKey (original) (raw)
java.lang.Object
- weka.attributeSelection.ConsistencySubsetEval.hashKey
All Implemented Interfaces:
java.io.Serializable, RevisionHandler
Enclosing class:
ConsistencySubsetEval
public class ConsistencySubsetEval.hashKey
extends java.lang.Object
implements java.io.Serializable, RevisionHandler
Class providing keys to the hash table.
See Also:
Serialized Form
Constructor Summary
Constructors
Constructor and Description hashKey(double[] t) Constructor for a hashKey hashKey(Instance t, int numAtts) Constructor for a hashKey Method Summary
All Methods Instance Methods Concrete Methods
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 * ### Methods inherited from class java.lang.Object `getClass, notify, notifyAll, toString, wait, wait, wait`
Constructor Detail
* #### hashKey public hashKey([Instance](../../weka/core/Instance.html "class in weka.core") t, int numAtts) throws java.lang.Exception Constructor for a hashKey Parameters: `t` \- an instance from which to generate a key `numAtts` \- the number of attributes Throws: `java.lang.Exception` \- if something goes wrong * #### hashKey public hashKey(double[] t) Constructor for a hashKey Parameters: `t` \- an array of feature values
Method Detail
* #### toString public java.lang.String toString([Instances](../../weka/core/Instances.html "class in weka.core") t, int maxColWidth) Convert a hash entry to a string Parameters: `t` \- the set of instances `maxColWidth` \- width to make the fields Returns: the hash entry as string * #### hashCode public int hashCode() Calculates a hash code Overrides: `hashCode` in class `java.lang.Object` Returns: the hash code as an integer * #### equals public boolean equals(java.lang.Object b) Tests if two instances are equal Overrides: `equals` in class `java.lang.Object` Parameters: `b` \- a key to compare with Returns: true if the objects are equal * #### print\_hash\_code public void print_hash_code() Prints the hash code * #### getRevision public java.lang.String getRevision() Returns the revision string. Specified by: `[getRevision](../../weka/core/RevisionHandler.html#getRevision--)` in interface `[RevisionHandler](../../weka/core/RevisionHandler.html "interface in weka.core")` Returns: the revision