Package com.imsl.datamining
Class Itemsets
java.lang.Object
com.imsl.datamining.Itemsets
- All Implemented Interfaces:
Serializable,Cloneable
Object containing a set of frequent items and the number of transactions
examined to obtain the frequent item set.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint[]getItemset(int i) Returns a particular itemset.int[][]Returns the set ofItemsetsas an integer matrix.intReturns the number of itemsets in thisItemsets.intReturns anintindicating the number of transactions used to construct the itemsets.doublegetSupport(int i) Returns the support determined for a particular itemset.voidprint()Prints a standard representation of the members of this object.
-
Method Details
-
getNumberOfTransactions
public int getNumberOfTransactions()Returns anintindicating the number of transactions used to construct the itemsets.- Returns:
- an
intindicating 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- anintindicating which itemset to retrieve the support for.- Returns:
- a
doublethat specifies the support determined for theith itemset.
-
getItemset
public int[] getItemset(int i) Returns a particular itemset.- Parameters:
i- anintindicating which itemset to retrieve.- Returns:
- an
intarray that contains theith itemset.
-
getNumberOfItemsets
public int getNumberOfItemsets()Returns the number of itemsets in thisItemsets.- Returns:
- an
intspecifying the number of itemsets in thisItemsets.
-
getItemsetsMatrix
public int[][] getItemsetsMatrix()Returns the set ofItemsetsas an integer matrix.- Returns:
- an
intmatrix. 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.
-