Documentation of 'ca.pfv.spmf.algorithms.sequentialpatterns.spade_spam_AGP.dataStructures.database.SequenceDatabase' Java class
SequenceDatabase
ca.pfv.spmf.algorithms.sequentialpatterns.spade_spam_AGP.dataStructures.database

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)
      Method that adds a sequence from a array of string
      void clear() 
      java.util.List<EquivalenceClass> frequentItems()
      It returns the equivalence classes associated with the frequent items that we have found
      java.util.Map<Item,EquivalenceClass> getFrequentItems()
      It returns the map that makes the matching between items and equivalence classes.
      java.util.List<Sequence> getSequences()
      It returns the sequences of the database in a list
      java.util.List<EquivalenceClass> getSize2FrecuentSequences(double minSupport)
      It return the equivalence classes associated with the frequent 2-Patterns that we have found
      void loadFile(java.lang.String path, double minSupport)
      Method that load a database from a path file given as parameter
      int size()
      It returns the final number of sequences
      java.lang.String toString()
      Get the string representation of this SequenceDatabase
      • 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 minSupport)
                      throws java.io.IOException
        Method that load a database from a path file given as parameter
        Parameters:
        path - Path file where the database is
        minSupport - Minimum absolute support
        Throws:
        java.io.IOException
      • addSequence

        public void addSequence(java.lang.String[] integers)
        Method that adds a sequence from a array of string
        Parameters:
        integers -
      • toString

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

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

        public java.util.List<Sequence> getSequences()
        It returns the sequences of the database in a list
        Returns:
        the list of sequences.
      • frequentItems

        public java.util.List<EquivalenceClass> frequentItems()
        It returns the equivalence classes associated with the frequent items that we have found
        Returns:
        the list of equivalence classes
      • getFrequentItems

        public java.util.Map<Item,EquivalenceClass> getFrequentItems()
        It returns the map that makes the matching between items and equivalence classes.
        Returns:
        the map
      • getSize2FrecuentSequences

        public java.util.List<EquivalenceClass> getSize2FrecuentSequences(double minSupport)
        It return the equivalence classes associated with the frequent 2-Patterns that we have found
        Parameters:
        minSupport - Minimum absolute support
        Returns:
        the list of equivalence classes
      • clear

        public void clear()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.