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

Class MDSequence



  • public class MDSequence
    extends java.lang.Object
    Implementation of a "MultiDimensional-Sequence" used by the SeqDim algorithm (Pinto et al., 2001).

    An MD-Sequence is associated to a MD-Database.

    An MD-Sequence has two parts: an mdpattern (the values for each dimension) and a sequence.
    See Also:
    MDSequenceDatabase, MDPattern, Sequence, AlgoSeqDim, AlgoFournierViger08
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getAbsoluteSupport()
      Get the support of this MD-sequence as an integer (mdsequence count)
      java.lang.String getFormattedRelativeSupport(int databaseSize)
      Get the support of this MD-sequence as a percentage with five decimals (String)
      int getId()
      Get the ID of this md-sequence
      MDPattern getMdpattern()
      Get the MDPattern in this md-sequence
      double getRelativeSupport(int databaseSize)
      Get the support of this MD-sequence as a percentage (double)
      Sequence getSequence()
      Get the sequence in this md-sequence
      void print()
      Print a String representation of this MD-Sequence to System.out
      void setSupport(int transactioncount)
      Set the support of this MDSequence
      java.lang.String toString()
      Get a String representation of this MD-Sequence to System.out
      • Methods inherited from class java.lang.Object

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

      • MDSequence

        public MDSequence(int id,
                          MDPattern mdpattern,
                          Sequence sequence)
        Constructor
        Parameters:
        id - the id of the md-sequence
        mdpattern - the md-pattern in this md-sequence
        sequence - the sequence in this md-sequence
    • Method Detail

      • getSequence

        public Sequence getSequence()
        Get the sequence in this md-sequence
        Returns:
        a Sequence
      • getMdpattern

        public MDPattern getMdpattern()
        Get the MDPattern in this md-sequence
        Returns:
        a MDPattern
      • getId

        public int getId()
        Get the ID of this md-sequence
        Returns:
        an integer
      • getRelativeSupport

        public double getRelativeSupport(int databaseSize)
        Get the support of this MD-sequence as a percentage (double)
        Parameters:
        databaseSize - the database size
        Returns:
        the support as a double
      • getAbsoluteSupport

        public int getAbsoluteSupport()
        Get the support of this MD-sequence as an integer (mdsequence count)
        Returns:
        the support as an integer
      • getFormattedRelativeSupport

        public java.lang.String getFormattedRelativeSupport(int databaseSize)
        Get the support of this MD-sequence as a percentage with five decimals (String)
        Parameters:
        databaseSize - the database size
        Returns:
        the support as a double
      • print

        public void print()
        Print a String representation of this MD-Sequence to System.out
      • toString

        public java.lang.String toString()
        Get a String representation of this MD-Sequence to System.out
        Overrides:
        toString in class java.lang.Object
        Returns:
        a String
      • setSupport

        public void setSupport(int transactioncount)
        Set the support of this MDSequence
        Parameters:
        transactioncount - the support as an integer value (as asequence count).

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.