Class PseudoSequence


  • public class PseudoSequence
    extends java.lang.Object
    This represents a sequence from a projected database (as based in PrefixSpan). Since it is a projected sequence, it makes reference to the original sequence. This class is used by the PrefixSpan and BIDE+ algorithms. Copyright (c) 2008-2012 Philippe Fournier-Viger 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 Summary

      Constructors 
      Modifier Constructor Description
      protected PseudoSequence​(int sequenceID, int indexFirstItem)
      Create a pseudo-sequence from a sequence that is an original sequence.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getOriginalSequenceID()
      Get the original sequence corresponding to this projected sequence.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sequenceID

        protected int sequenceID
      • indexFirstItem

        protected int indexFirstItem
    • Constructor Detail

      • PseudoSequence

        protected PseudoSequence​(int sequenceID,
                                 int indexFirstItem)
        Create a pseudo-sequence from a sequence that is an original sequence.
        Parameters:
        sequence - the original sequence.
        indexFirstItem - the item where the pseudo-sequence should start in terms of the original sequence.
    • Method Detail

      • getOriginalSequenceID

        public int getOriginalSequenceID()
        Get the original sequence corresponding to this projected sequence.
        Returns:
        the original sequence