Documentation of 'ca.pfv.spmf.algorithms.sequentialpatterns.clospan_AGP.items.PseudoSequenceDatabase' Java class
PseudoSequenceDatabase
ca.pfv.spmf.algorithms.sequentialpatterns.clospan_AGP.items

Class PseudoSequenceDatabase



  • public class PseudoSequenceDatabase
    extends java.lang.Object
    Class to make possible the implementation of pseudoprojections already explained in the paper of PrefixSpan Algorithm. By means of this class, we convert a usual sequence in a pseudosequence, where we can point out the different projection points that we have in every database projection. This class is inspired in SPMF PrefixSpan implementation. 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 .
    • Constructor Detail

      • PseudoSequenceDatabase

        public PseudoSequenceDatabase()
    • Method Detail

      • getPseudoSequences

        public java.util.List<PseudoSequence> getPseudoSequences()
        Get the list of pseudosequences from this database
        Returns:
        the list of PseudoSequence objects
      • toString

        public java.lang.String toString()
        It returns a string representation of this database
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string representation
      • size

        public int size()
        It returns the number of pseudosequences that the database has
        Returns:
        the number of pseudosequences
      • getNumberOfElementsProjectedDatabase

        public int getNumberOfElementsProjectedDatabase()
      • setNumberOfElementsProjectedDatabase

        public void setNumberOfElementsProjectedDatabase(int value)
      • getSequenceIDs

        public java.util.Set<java.lang.Integer> getSequenceIDs()
        It returns the set of sequence IDs of pseudosequences in this sequence database
        Returns:
        the Set of sequence ids.
      • addSequence

        public void addSequence(PseudoSequence newSequence)
        It adds a sequence to the database
        Parameters:
        newSequence - the sequence to be added
      • clear

        public void clear()
        It clears the whole database
      • setCumulativeSum

        public void setCumulativeSum(int cumulativeSum)
      • getCumulativeSum

        public int getCumulativeSum()
      • getCumulativeSumNumberOfProjections

        public int getCumulativeSumNumberOfProjections()
      • setCumulativeSumNumberOfProjections

        public void setCumulativeSumNumberOfProjections(int cumulativeSumNumberOfProjections)
      • getElementsProjectedDatabase

        public int getElementsProjectedDatabase()
      • setElementsProjectedDatabase

        public void setElementsProjectedDatabase(java.lang.String string)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.