Documentation of 'weka.associations.BinaryItem' Java class
BinaryItem
weka.associations

Class 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.
    See Also:
    Serialized Form
    • 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:
        equals in class NominalItem
        Returns:
        true if this BinaryItem is equal to the argument.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Item

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.