Package weka.attributeSelection
Class ConsistencySubsetEval.hashKey
java.lang.Object
weka.attributeSelection.ConsistencySubsetEval.hashKey
- All Implemented Interfaces:
Serializable
,RevisionHandler
- Enclosing class:
ConsistencySubsetEval
Class providing keys to the hash table.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests if two instances are equalReturns the revision string.int
hashCode()
Calculates a hash codevoid
Prints the hash codeConvert a hash entry to a string
-
Constructor Details
-
hashKey
Constructor for a hashKey- Parameters:
t
- an instance from which to generate a keynumAtts
- the number of attributes- Throws:
Exception
- if something goes wrong
-
hashKey
public hashKey(double[] t) Constructor for a hashKey- Parameters:
t
- an array of feature values
-
-
Method Details
-
toString
Convert a hash entry to a string- Parameters:
t
- the set of instancesmaxColWidth
- width to make the fields- Returns:
- the hash entry as string
-
hashCode
public int hashCode()Calculates a hash code -
equals
Tests if two instances are equal -
print_hash_code
public void print_hash_code()Prints the hash code -
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-