Documentation of 'ca.pfv.spmf.algorithms.sequentialpatterns.spam.PrefixVMSP' Java class
PrefixVMSP
ca.pfv.spmf.algorithms.sequentialpatterns.spam

Class PrefixVMSP



  • public class PrefixVMSP
    extends java.lang.Object
    Implementation of a prefix sequence as a list of itemsets as used by the VMSP algorithm as used by the VMSP algorithm. 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 
      Constructor and Description
      PrefixVMSP()
      Default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addItemset(Itemset itemset)
      Add an itemset to that sequence
      PrefixVMSP cloneSequence()
      Make a copy of that sequence
      boolean containsItem(java.lang.Integer item) 
      Itemset get(int index)
      Get the itemset at a given position
      int getItemOccurencesTotalCount()
      Return the sum of the total number of items in this sequence
      java.util.List<Itemset> getItemsets()
      Get the list of itemsets in this sequence
      java.lang.Integer getIthItem(int i)
      Get the ith item in this sequence (no matter in which itemset)
      void print()
      Print this sequence to System.out.
      int size()
      Get the number of elements in this sequence
      java.lang.String toString()
      Return a string representation of this sequence
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PrefixVMSP

        public PrefixVMSP()
        Default constructor
    • Method Detail

      • cloneSequence

        public PrefixVMSP cloneSequence()
        Make a copy of that sequence
        Returns:
        a copy of that sequence
      • addItemset

        public void addItemset(Itemset itemset)
        Add an itemset to that sequence
        Parameters:
        itemset -
      • print

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

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

        public java.util.List<Itemset> getItemsets()
        Get the list of itemsets in this sequence
        Returns:
        A list of itemsets.
      • get

        public Itemset get(int index)
        Get the itemset at a given position
        Parameters:
        index - the position
        Returns:
        the itemset
      • getIthItem

        public java.lang.Integer getIthItem(int i)
        Get the ith item in this sequence (no matter in which itemset)
        Parameters:
        i - the position
        Returns:
        the item
      • size

        public int size()
        Get the number of elements in this sequence
        Returns:
        the number of elements.
      • getItemOccurencesTotalCount

        public int getItemOccurencesTotalCount()
        Return the sum of the total number of items in this sequence
      • containsItem

        public boolean containsItem(java.lang.Integer item)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.