ca.pfv.spmf.patterns.itemset_array_integers_with_tids_bitset
Class Itemsets
- java.lang.Object
-
- ca.pfv.spmf.patterns.itemset_array_integers_with_tids_bitset.Itemsets
-
public class Itemsets extends java.lang.ObjectThis class represents a set of itemsets where an itemset is an array of integer with a tid list represented by a list of integers. Itemsets are ordered by size. For example, level 1 means itemsets of size 1 (that contains 1 item).
-
-
Constructor Summary
Constructors Constructor and Description Itemsets(java.lang.String name)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddItemset(Itemset itemset, int k)Add an itemset to this structurevoiddecreaseItemsetCount()Decrease the count of itemsets stored in this structure by 1.intgetItemsetsCount()Get the total number of itemsetsjava.util.List<java.util.List<Itemset>>getLevels()Get all itemsets.voidprintItemsets(int nbObject)Print all itemsets to System.out, ordered by their size.voidsetName(java.lang.String name)Set the name of this group of itemsets
-
-
-
Constructor Detail
-
Itemsets
public Itemsets(java.lang.String name)
Constructor- Parameters:
name- the name of these itemsets
-
-
Method Detail
-
printItemsets
public void printItemsets(int nbObject)
Print all itemsets to System.out, ordered by their size.- Parameters:
nbObject- The number of transaction/sequence in the database where there itemsets were found.
-
addItemset
public void addItemset(Itemset itemset, int k)
Add an itemset to this structure- Parameters:
itemset- the itemsetk- the number of items contained in the itemset
-
getLevels
public java.util.List<java.util.List<Itemset>> getLevels()
Get all itemsets.- Returns:
- A list of list of itemsets. Position i in this list is the list of itemsets of size i.
-
getItemsetsCount
public int getItemsetsCount()
Get the total number of itemsets- Returns:
- the number of itemsets.
-
setName
public void setName(java.lang.String name)
Set the name of this group of itemsets- Parameters:
string- the new name
-
decreaseItemsetCount
public void decreaseItemsetCount()
Decrease the count of itemsets stored in this structure by 1.
-
-
DMelt 3.0 © DataMelt by jWork.ORG