Class Sequences


  • public class Sequences
    extends java.lang.Object
    Inspired in SPMF This class implements a list of frequent sequence lists (or frequent pattern lists) that it is organized by levels. That level contains all of sequences that have a concrete number of items. Therefore, we allocate 1-sequences in level 1, 2-sequences in level 2, and so forth... 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 .
    Author:
    agomariz
    • Field Detail

      • levels

        public java.util.List<java.util.List<Pattern>> levels
      • numberOfFrequentSequences

        public int numberOfFrequentSequences
    • Constructor Detail

      • Sequences

        public Sequences​(java.lang.String name)
    • Method Detail

      • toString

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

        public java.lang.String toStringToFile​(boolean outputSequenceIdentifiers)
      • addSequence

        public void addSequence​(Pattern sequence,
                                int k)
      • getLevel

        public java.util.List<Pattern> getLevel​(int index)
      • getLevelCount

        public int getLevelCount()
      • getLevels

        public java.util.List<java.util.List<Pattern>> getLevels()
      • size

        public int size()
      • sort

        public void sort()
      • clear

        public void clear()