Documentation of 'ca.pfv.spmf.algorithms.sequentialpatterns.BIDE_and_prefixspan_with_strings.SequentialPattern' Java class
SequentialPattern
ca.pfv.spmf.algorithms.sequentialpatterns.BIDE_and_prefixspan_with_strings

Class SequentialPattern



  • public class SequentialPattern
    extends java.lang.Object
    This class represents a sequential pattern found by the PrefixSpan or BIDE algorithm. A sequential pattern is represented by these algorithms as a list of itemsets with an associated hash set indicating the IDS of the sequence containing this sequential pattern.
    See Also:
    AlgoPrefixSpan_with_Strings, AlgoBIDEPlus_withStrings, Itemset
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Itemset get(int index)
      Get an itemset at a given position.
      int getAbsoluteSupport()
      Get the absolute support of this pattern.
      int getId() 
      java.util.List<Itemset> getItemsets()
      Get the itemsets in this sequential pattern
      java.lang.String getIthItem(int i)
      Get the ith item in this sequential pattern.
      java.lang.String getRelativeSupportFormated(int sequencecount)
      Get the relative support of this pattern (a percentage)
      java.util.Set<java.lang.Integer> getSequencesID() 
      java.lang.String itemsetsToString()
      Get a string representation of this sequential pattern.
      void print()
      Print this sequential pattern to System.out
      void setID(int id2) 
      int size()
      Get the number of itemsets in this sequential pattern.
      java.lang.String toString()
      Get a string representation of this sequential pattern, containing the sequence IDs of sequence containing this pattern.
      • Methods inherited from class java.lang.Object

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

      • getRelativeSupportFormated

        public java.lang.String getRelativeSupportFormated(int sequencecount)
        Get the relative support of this pattern (a percentage)
        Parameters:
        sequencecount - the number of sequences in the original database
        Returns:
        the support as a string
      • getAbsoluteSupport

        public int getAbsoluteSupport()
        Get the absolute support of this pattern.
        Returns:
        the support (an integer >= 1)
      • print

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

        public java.lang.String toString()
        Get a string representation of this sequential pattern, containing the sequence IDs of sequence containing this pattern.
        Overrides:
        toString in class java.lang.Object
      • itemsetsToString

        public java.lang.String itemsetsToString()
        Get a string representation of this sequential pattern.
      • getId

        public int getId()
      • getItemsets

        public java.util.List<Itemset> getItemsets()
        Get the itemsets in this sequential pattern
        Returns:
        a list of itemsets.
      • get

        public Itemset get(int index)
        Get an itemset at a given position.
        Parameters:
        index - the position
        Returns:
        the itemset
      • getIthItem

        public java.lang.String getIthItem(int i)
        Get the ith item in this sequential pattern.
        Parameters:
        i - the position of the item.
        Returns:
        the item or null if the position does not exist.
      • size

        public int size()
        Get the number of itemsets in this sequential pattern.
        Returns:
        the number of itemsets.
      • getSequencesID

        public java.util.Set<java.lang.Integer> getSequencesID()
      • setID

        public void setID(int id2)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.