Documentation of 'ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim.Itemset' Java class
Itemset
ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim

Class Itemset



  • public class Itemset
    extends java.lang.Object
    This class represents an itemset as used by the SeqDim and Fournier-Viger 2008 algorithm.

    An itemset is a set of items and an optional timestamp.
    See Also:
    AlgoSeqDim, AlgoFournierViger08
    • Constructor Summary

      Constructors 
      Constructor and Description
      Itemset()
      Default constructor
      Itemset(ItemSimple item, long timestamp)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addItem(ItemSimple item)
      Add an item to this itemset.
      Itemset cloneItemSet()
      Make an exact copy of this itemset.
      Itemset cloneItemSetMinusItems(java.util.Map<ItemSimple,java.util.Set<java.lang.Integer>> mapSequenceID, double relativeMinsup)
      Make a copy of this itemset but without infrequent items
      ItemSimple get(int index)
      Get the i-th item in this itemset
      java.util.List<ItemSimple> getItems()
      Get the List of items contained in this Itemset.
      long getTimestamp()
      Get the timestamp
      void print()
      Print this item to System.out.
      void setTimestamp(long timestamp)
      Set the timestamp of this itemset.
      int size()
      Get the number of items.
      java.lang.String toString()
      Get a String representation of this item.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Itemset

        public Itemset(ItemSimple item,
                       long timestamp)
        Constructor
        Parameters:
        item - an item
        timestamp - a timestamp
      • Itemset

        public Itemset()
        Default constructor
    • Method Detail

      • addItem

        public void addItem(ItemSimple item)
        Add an item to this itemset.
        Parameters:
        item - an Item
      • getItems

        public java.util.List<ItemSimple> getItems()
        Get the List of items contained in this Itemset.
        Returns:
        a List of items
      • get

        public ItemSimple get(int index)
        Get the i-th item in this itemset
        Parameters:
        index - the position i
        Returns:
        the Item
      • print

        public void print()
        Print this item to System.out.
      • toString

        public java.lang.String toString()
        Get a String representation of this item.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a String
      • cloneItemSetMinusItems

        public Itemset cloneItemSetMinusItems(java.util.Map<ItemSimple,java.util.Set<java.lang.Integer>> mapSequenceID,
                                              double relativeMinsup)
        Make a copy of this itemset but without infrequent items
        Parameters:
        mapSequenceID - a map indicating the IDs of sequence (value) containing each item (key).
        relativeMinsup - a relative minimum support (integer)
        Returns:
        a new Itemset
      • cloneItemSet

        public Itemset cloneItemSet()
        Make an exact copy of this itemset.
        Returns:
        a new Itemset.
      • getTimestamp

        public long getTimestamp()
        Get the timestamp
        Returns:
        the timestamp
      • setTimestamp

        public void setTimestamp(long timestamp)
        Set the timestamp of this itemset.
        Parameters:
        timestamp - the timestamp.
      • size

        public int size()
        Get the number of items.
        Returns:
        an integer.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.