Documentation of 'ca.pfv.spmf.algorithms.sequentialpatterns.BIDE_and_prefixspan.PseudoSequence' Java class
PseudoSequence
ca.pfv.spmf.algorithms.sequentialpatterns.BIDE_and_prefixspan

Class PseudoSequence

  • Direct Known Subclasses:
    PseudoSequenceBIDE


    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 .
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj) 
      java.lang.Integer getItemAtInItemsetAt(int indexItem, int indexItemset)
      Get an item at a given position inside a given itemset
      java.util.List<java.lang.Integer> getItemset(int index)
      Get the itemset at a given position
      Sequence getOriginalSequence()
      Get the original sequence corresponding to this projected sequence.
      int getSizeOfItemsetAt(int index)
      Return the size in terms of items of an itemset at a given position (overloaded).
      void print()
      Print this pseudo-sequence to System.out.
      java.lang.String toString()
      Get a string representation of this sequence.
      • Methods inherited from class java.lang.Object

        getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getOriginalSequence

        public Sequence getOriginalSequence()
        Get the original sequence corresponding to this projected sequence.
        Returns:
        the original sequence
      • getSizeOfItemsetAt

        public int getSizeOfItemsetAt(int index)
        Return the size in terms of items of an itemset at a given position (overloaded).
        Parameters:
        index - the position of the itemset
        Returns:
        the number of items in that itemset
      • getItemAtInItemsetAt

        public java.lang.Integer getItemAtInItemsetAt(int indexItem,
                                                      int indexItemset)
        Get an item at a given position inside a given itemset
        Parameters:
        indexItem - the position of the item
        indexItemset - the position of the itemset
        Returns:
        the item.
      • getItemset

        public java.util.List<java.lang.Integer> getItemset(int index)
        Get the itemset at a given position
        Parameters:
        index - the position of the itemset
        Returns:
        the itemset
      • print

        public void print()
        Print this pseudo-sequence to System.out.
      • toString

        public java.lang.String toString()
        Get a string representation of this sequence.
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.