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

Class MDSequenceDatabase



  • public class MDSequenceDatabase
    extends java.lang.Object
    Implementation of a "Multi-Dimensional Sequence Database" as used by the SeqDim algorithm (Pinto et al., 2001).

    A MD-Sequences database contains a list of md-Sequences, where each MD-Sequence is composed of an MD-Pattern and a Sequence.
    See Also:
    MDSequence, MDSequences, AlgoSeqDim
    • Constructor Detail

      • MDSequenceDatabase

        public MDSequenceDatabase()
    • Method Detail

      • getItemCount

        public int getItemCount()
        Get the number of distinct items in this database.
        Returns:
        an integer
      • loadFile

        public void loadFile(java.lang.String path)
                      throws java.io.IOException
        Load a MD-Sequence database from a file
        Parameters:
        path - the path of the file
        Throws:
        java.io.IOException - exception if error reading the file
      • addSequence

        public void addSequence(MDSequence sequence)
        Add an MDSequence to this MDSequence database.
        Parameters:
        sequence - an MDSequence
      • printDatabase

        public void printDatabase()
        Print this database to system.out.
      • toString

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

        public int size()
        Get the number of MDsequences.
        Returns:
        a integer value
      • getSequences

        public java.util.List<MDSequence> getSequences()
        Get the list of MDSequences stored in this database
        Returns:
        a List of MDSequence objects.
      • get

        public MDSequence get(int index)
        Get the i-th MDSequence.
        Parameters:
        index - the position i.
        Returns:
        the MDSequence
      • getItemIDs

        public java.util.Set<ItemSimple> getItemIDs()
        Get the list of item IDs in this database.
        Returns:
        a set of Item objects.
      • getSequenceDatabase

        public SequenceDatabase getSequenceDatabase()
        Get the list of sequences contained in the MDSequences.
        Returns:
        a SequencDatabase
      • getPatternDatabase

        public MDPatternsDatabase getPatternDatabase()
        Get the list of MDPatterns contained in the MDSequences.
        Returns:
        a MDPatternsDatabase

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.