public class Itemsets extends Object implements Serializable, Cloneable
| Modifier and Type | Method and Description |
|---|---|
int[] |
getItemset(int i)
Returns a particular itemset.
|
int[][] |
getItemsetsMatrix()
Returns the set of
Itemsets as an integer matrix. |
int |
getNumberOfItemsets()
Returns the number of itemsets in this
Itemsets. |
int |
getNumberOfTransactions()
Returns an
int indicating the number of transactions used to
construct the itemsets. |
double |
getSupport(int i)
Returns the support determined for a particular itemset.
|
void |
print()
Prints a standard representation of the members of this object.
|
public int getNumberOfTransactions()
int indicating the number of transactions used to
construct the itemsets.int indicating the number of transactions used to
construct the itemsets.public double getSupport(int i)
i - an int indicating which itemset to retrieve the
support for.double that specifies the support determined for
the ith itemset.public int[] getItemset(int i)
i - an int indicating which itemset to retrieve.int array that contains the
ith itemset.public int getNumberOfItemsets()
Itemsets.int specifying the number of itemsets in this
Itemsets.public int[][] getItemsetsMatrix()
Itemsets as an integer matrix.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}.public void print()
Copyright © 2020 Rogue Wave Software. All rights reserved.