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

Class MDSequences



  • public class MDSequences
    extends java.lang.Object
    A set of MDSequences organized by levels representing their size. Returned by the AlgoSeqDim algorithm.
    Level 0 = MDSequences of size 0
    Level 1 = MDSequences of size 1
    ...
    Level n = MDSequences of size n
    See Also:
    AlgoFournierViger08
    • Constructor Summary

      Constructors 
      Constructor and Description
      MDSequences(java.lang.String name)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addSequence(MDSequence sequence, int k)
      Add a MD-sequence to this structure
      java.util.List<MDSequence> getLevel(int k)
      Get MDSequences of size k.
      java.util.List<java.util.List<MDSequence>> getLevels()
      Get the size of the largest MD-Sequence stored in this structure.
      void printPatterns(int sequenceCount)
      Print the patterns contained in this structure to System.out.
      void recalculateSize()
      Recalculate the number of MDSequences stored in this structure.
      int size()
      Get the number of MDSequences stored in this structure.
      java.lang.String toString(int sequenceCount)
      Get a String representation of this set of MDSequences.
      • Methods inherited from class java.lang.Object

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

      • MDSequences

        public MDSequences(java.lang.String name)
        Constructor.
        Parameters:
        name - a name for the patterns that will be contained in this structure (String).
    • Method Detail

      • printPatterns

        public void printPatterns(int sequenceCount)
        Print the patterns contained in this structure to System.out.
        Parameters:
        sequenceCount - the number of MDSequences in the MDSequences database.
      • toString

        public java.lang.String toString(int sequenceCount)
        Get a String representation of this set of MDSequences.
        Parameters:
        sequenceCount - the number of MDSequences in the MDSequences database.
        Returns:
        a string
      • addSequence

        public void addSequence(MDSequence sequence,
                                int k)
        Add a MD-sequence to this structure
        Parameters:
        sequence - the MDSequence
        k - the size of the MDSequence
      • getLevel

        public java.util.List<MDSequence> getLevel(int k)
        Get MDSequences of size k.
        Parameters:
        k - the size
        Returns:
        a list of MDSequence objects
      • size

        public int size()
        Get the number of MDSequences stored in this structure.
        Returns:
        an integer
      • getLevels

        public java.util.List<java.util.List<MDSequence>> getLevels()
        Get the size of the largest MD-Sequence stored in this structure.
        Returns:
        an int value.
      • recalculateSize

        public void recalculateSize()
        Recalculate the number of MDSequences stored in this structure.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.