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

Class SequenceDatabase



  • public class SequenceDatabase
    extends java.lang.Object
    Inspired in SPMF Implementation of a sequence database, where each sequence is implemented as an array of integers and should have a unique id. See examples in /test/ directory for the format of input files. Copyright (c) 2013 Antonio Gomariz Peñalver 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 .
    • Constructor Detail

    • Method Detail

      • loadFile

        public void loadFile(java.lang.String path,
                             double minSupportAbsolute)
                      throws java.io.IOException
        It loads the database contained in the file path given as parameter. Besides, all the frequent 1-patterns are identified and the original database is updated by removing the non-frequent items
        Parameters:
        path - File path of the original database
        minSupportAbsolute - Minimum absolute support
        Throws:
        java.io.IOException
      • addSequence

        public void addSequence(java.lang.String[] integers)
        It creates and addes the sequence found in the array of Strings
        Parameters:
        integers -
      • addSequence

        public void addSequence(Sequence sequence)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • size

        public int size()
      • getSequences

        public java.util.List<Sequence> getSequences()
      • frequentItems

        public java.util.List<Pattern> frequentItems()
        It returns the frequent 1-patterns
        Returns:
        the list of frequent items.
      • getFrequentItems

        public java.util.Map<Item,Pattern> getFrequentItems()
        It return a map where are associated each frequent item with the 1-pattern composed by itself
        Returns:
        the map
      • clear

        public void clear()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.