Package weka.associations
Class BinaryItem
java.lang.Object
weka.associations.Item
weka.associations.NominalItem
weka.associations.BinaryItem
- All Implemented Interfaces:
Serializable
,Comparable<Item>
Class that encapsulates an item whose backing Attribute is
binary or unary.
- Version:
- $Revision; $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class weka.associations.NominalItem
getComparisonAsString, getItemValueAsString, getValueIndex, toString
Methods inherited from class weka.associations.Item
compareTo, decreaseFrequency, decreaseFrequency, getAttribute, getFrequency, increaseFrequency, increaseFrequency, toString
-
Constructor Details
-
BinaryItem
Constructor.- Parameters:
att
- the attribute that backs this item.valueIndex
- the index of the value for this item.- Throws:
Exception
- if the backing attribute is not binary or unary.
-
-
Method Details
-
equals
Equals. Just compares attribute and valueIndex.- Overrides:
equals
in classNominalItem
- Returns:
- true if this BinaryItem is equal to the argument.
-
hashCode
public int hashCode()
-