ca.pfv.spmf.algorithms.frequentpatterns.dci_closed_optimized
Class BitMatrix
- java.lang.Object
-
- ca.pfv.spmf.algorithms.frequentpatterns.dci_closed_optimized.BitMatrix
-
public class BitMatrix extends java.lang.ObjectThis class represents a bix matrix as used by the optimized version of the DCI_Closed algorithm.- See Also:
AlgoDCI_Closed_Optimized
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddTidForItem(java.lang.Integer item, int bit)Add a tid to the tidset of an item.java.util.BitSetgetBitSetOf(java.lang.Integer i)Get the tidset of an itemintgetSupportOfItem(int i)Get the support of an item (not the first time)intgetSupportOfItemFirstTime(int i)Get the support of an item (first time only)java.lang.StringtoString()Return a string representation of the bitmatrix
-
-
-
Method Detail
-
addTidForItem
public void addTidForItem(java.lang.Integer item, int bit)Add a tid to the tidset of an item.- Parameters:
item- the itembit- the bit corresponding to the tid
-
getSupportOfItemFirstTime
public int getSupportOfItemFirstTime(int i)
Get the support of an item (first time only)- Parameters:
i- the item- Returns:
- the support
-
getSupportOfItem
public int getSupportOfItem(int i)
Get the support of an item (not the first time)- Parameters:
i- the item- Returns:
- the support
-
getBitSetOf
public java.util.BitSet getBitSetOf(java.lang.Integer i)
Get the tidset of an item- Parameters:
i- the item- Returns:
- a bitset representing the tidset of the item
-
toString
public java.lang.String toString()
Return a string representation of the bitmatrix- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG