Class Itemsets

java.lang.Object
com.imsl.datamining.Itemsets
All Implemented Interfaces:
Serializable, Cloneable

public class Itemsets extends Object implements Serializable, Cloneable
Object containing a set of frequent items and the number of transactions examined to obtain the frequent item set.
See Also:
  • Method Details

    • getNumberOfTransactions

      public int getNumberOfTransactions()
      Returns an int indicating the number of transactions used to construct the itemsets.
      Returns:
      an int indicating the number of transactions used to construct the itemsets.
    • getSupport

      public double getSupport(int i)
      Returns the support determined for a particular itemset.
      Parameters:
      i - an int indicating which itemset to retrieve the support for.
      Returns:
      a double that specifies the support determined for the ith itemset.
    • getItemset

      public int[] getItemset(int i)
      Returns a particular itemset.
      Parameters:
      i - an int indicating which itemset to retrieve.
      Returns:
      an int array that contains the ith itemset.
    • getNumberOfItemsets

      public int getNumberOfItemsets()
      Returns the number of itemsets in this Itemsets.
      Returns:
      an int specifying the number of itemsets in this Itemsets.
    • getItemsetsMatrix

      public int[][] getItemsetsMatrix()
      Returns the set of Itemsets as an integer matrix.
      Returns:
      an int matrix. The number of rows is consistent with the number of item sets that meet the specified support criterion. The rows are jagged. The length of each row is determined by the number of elements (frequently simultaneous items) in the item set and an element for the corresponding support. Therfore an item set with two elements would produce a row of length 3. The first two elements of the row would be the items of the set, with the support at position length-1; that is, {item1, item2, support value}. More generally: {item1, ..., itemN, support value}.
    • print

      public void print()
      Prints a standard representation of the members of this object.