Package weka.associations
Class BinaryItem
- java.lang.Object
-
- weka.associations.Item
-
- weka.associations.NominalItem
-
- weka.associations.BinaryItem
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Item>
public class BinaryItem extends NominalItem implements java.io.Serializable
Class that encapsulates an item whose backing Attribute is binary or unary.- Version:
- $Revision; $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BinaryItem(Attribute att, int valueIndex)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object compareTo)Equals.inthashCode()-
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 Detail
-
BinaryItem
public BinaryItem(Attribute att, int valueIndex) throws java.lang.Exception
Constructor.- Parameters:
att- the attribute that backs this item.valueIndex- the index of the value for this item.- Throws:
java.lang.Exception- if the backing attribute is not binary or unary.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object compareTo)
Equals. Just compares attribute and valueIndex.- Overrides:
equalsin classNominalItem- Returns:
- true if this BinaryItem is equal to the argument.
-
-