Class IdListCreatorStandard_Map

  • All Implemented Interfaces:
    IdListCreator

    public class IdListCreatorStandard_Map
    extends java.lang.Object
    implements IdListCreator
    Creator of a IdList based on a hashmap of arraylists. 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAppearance​(IDList idlist, java.lang.Integer sequence, java.lang.Integer timestamp, java.lang.Integer item)
      It adds to an Idlist of entries of arraylists an appearance >
      void addAppearancesInSequence​(IDList idlist, java.lang.Integer sequence, java.util.List<Position> itemsets)
      It adds to an Idlist of entries of arraylists several appearances in a same sequence ,, ...,}>
      static void clear()
      It removes the static fields.
      IDList create()
      It creates an empty IdList of entries of arraylists.
      static IdListCreator getInstance()
      Get the static reference of the singleton IdList based on entries of arraylists.
      void initializeMaps​(java.util.Map<Item,​TrieNode> frequentItems, java.util.Map<Item,​java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>>> projectingDistance, java.util.Map<java.lang.Integer,​java.lang.Integer> sequenceSize, java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>> sequenceItemsetsSize)  
      void updateProjectionDistance​(java.util.Map<Item,​java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>>> projectingDistance, Item item, int id, int itemsetCount, int itemsCount)  
      • Methods inherited from class java.lang.Object

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

      • clear

        public static void clear()
        It removes the static fields.
      • getInstance

        public static IdListCreator getInstance()
        Get the static reference of the singleton IdList based on entries of arraylists.
        Returns:
        the instance of this singleton
      • create

        public IDList create()
        It creates an empty IdList of entries of arraylists.
        Specified by:
        create in interface IdListCreator
        Returns:
        the idlist
      • addAppearance

        public void addAppearance​(IDList idlist,
                                  java.lang.Integer sequence,
                                  java.lang.Integer timestamp,
                                  java.lang.Integer item)
        It adds to an Idlist of entries of arraylists an appearance >
        Specified by:
        addAppearance in interface IdListCreator
      • addAppearancesInSequence

        public void addAppearancesInSequence​(IDList idlist,
                                             java.lang.Integer sequence,
                                             java.util.List<Position> itemsets)
        It adds to an Idlist of entries of arraylists several appearances in a same sequence ,, ...,}>
        Specified by:
        addAppearancesInSequence in interface IdListCreator
      • initializeMaps

        public void initializeMaps​(java.util.Map<Item,​TrieNode> frequentItems,
                                   java.util.Map<Item,​java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>>> projectingDistance,
                                   java.util.Map<java.lang.Integer,​java.lang.Integer> sequenceSize,
                                   java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>> sequenceItemsetsSize)
        Specified by:
        initializeMaps in interface IdListCreator
      • updateProjectionDistance

        public void updateProjectionDistance​(java.util.Map<Item,​java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>>> projectingDistance,
                                             Item item,
                                             int id,
                                             int itemsetCount,
                                             int itemsCount)
        Specified by:
        updateProjectionDistance in interface IdListCreator