Class ItemSet

java.lang.Object
smile.association.ItemSet

public class ItemSet extends Object
A set of items. The support supp(X) of an item set X is defined as the proportion of transactions in the data set which contain the item set. In this class, the support is actually the raw frequency rather than the ratio.
  • Field Details

    • items

      public final int[] items
      The set of items.
    • support

      public final int support
      The associated support of item set.
  • Constructor Details

    • ItemSet

      public ItemSet(int[] items, int support)
      Constructor.
      Parameters:
      items - The set of items.
      support - The associated support value.
  • Method Details