Documentation of 'ca.pfv.spmf.algorithms.sequentialpatterns.prefixSpan_AGP.items.SequenceDatabase' Java class
SequenceDatabase
ca.pfv.spmf.algorithms.sequentialpatterns.prefixSpan_AGP.items

Class SequenceDatabase



  • public class SequenceDatabase
    extends java.lang.Object
    Inspired in SPMF. Implementation of a sequence database. Each sequence should have a unique id. See examples in /test/ directory for the format of input files. Copyright Antonio Gomariz Peñalver 2013 This file is part of the SPMF DATA MINING SOFTWARE (http://www.philippe-fournier-viger.com/spmf). SPMF is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. SPMF is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with SPMF. If not, see .
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addSequence(java.lang.String[] integers, int sequenceID)
      It adds a sequence from an array of string that we have to interpret
      void clear() 
      java.util.Map<Item,java.util.BitSet> getFrequentItems()
      It return the frequent items
      java.util.List<Sequence> getSequences()
      It return the list of sequences in this sequence database
      void loadFile(java.lang.String path, double minSupportRelative)
      From a file located at the given string path, we create a database composed of a list of sequences
      int size()
      It returns the number of sequences of the sequence database
      java.lang.String toString()
      String representation of the SecuenceDatabase
      • Methods inherited from class java.lang.Object

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

      • loadFile

        public void loadFile(java.lang.String path,
                             double minSupportRelative)
                      throws java.io.IOException
        From a file located at the given string path, we create a database composed of a list of sequences
        Parameters:
        path - File path where we have the database
        minSupportRelative - Minimum absolute support
        Throws:
        java.io.IOException
      • addSequence

        public void addSequence(java.lang.String[] integers,
                                int sequenceID)
        It adds a sequence from an array of string that we have to interpret
        Parameters:
        integers -
        sequenceID -
      • toString

        public java.lang.String toString()
        String representation of the SecuenceDatabase
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string
      • size

        public int size()
        It returns the number of sequences of the sequence database
        Returns:
        the number of sequences
      • getSequences

        public java.util.List<Sequence> getSequences()
        It return the list of sequences in this sequence database
        Returns:
        the list of sequences
      • getFrequentItems

        public java.util.Map<Item,java.util.BitSet> getFrequentItems()
        It return the frequent items
        Returns:
        a map of entries where key = item and value = its bitset.
      • clear

        public void clear()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.