Documentation of 'ca.pfv.spmf.patterns.itemset_array_integers_with_tids_bitset.Itemset' Java class
Itemset
ca.pfv.spmf.patterns.itemset_array_integers_with_tids_bitset

Class Itemset



  • public class Itemset
    extends AbstractOrderedItemset
    This class represents an itemset (a set of items) where the itemset is an array of integers sorted by lexical order, an item should not appear more than once, the ids of transactions/sequences containing this itemset is represented as a bitset.
    See Also:
    AbstractOrderedItemset
    • Field Detail

      • itemset

        public int[] itemset
        The list of items contained in this itemset, ordered by lexical order
      • cardinality

        public int cardinality
    • Constructor Detail

      • Itemset

        public Itemset()
        Constructor of an empty itemset
      • Itemset

        public Itemset(int[] itemset,
                       java.util.BitSet bitset,
                       int support)
        Constructor of an empty itemset
        Parameters:
        itemset - the itemset
        the - tidset of the itemset
        the - tidset cardinality (support)
      • Itemset

        public Itemset(int item)
        Constructor
        Parameters:
        item - an item that should be added to the new itemset
      • Itemset

        public Itemset(int[] items)
        Constructor
        Parameters:
        items - an array of items that should be added to the new itemset
    • Method Detail

      • getItems

        public int[] getItems()
        Get the list of items in this itemset
        Returns:
        the list of items
      • get

        public java.lang.Integer get(int index)
        Get the item at a given position of this itemset
        Specified by:
        get in class AbstractOrderedItemset
        Parameters:
        index - the position of the item to be returned
        Returns:
        the item
      • setTIDs

        public void setTIDs(java.util.BitSet listTransactionIds,
                            int cardinality)
        Set the list of transaction/sequence ids containing this itemset.
        Parameters:
        listTransactionIds - the list of transaction/sequence ids.
        cardinality - the cardinality of the list.
      • size

        public int size()
        Get the size of this itemset.
        Specified by:
        size in class AbstractOrderedItemset
        Returns:
        the size of this itemset
      • getTransactionsIds

        public java.util.BitSet getTransactionsIds()
        Get the list of transactions/sequences containing this itemset.
        Returns:
        the list as a bitset.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.