Interface IdListCreator

  • All Known Implementing Classes:
    IdListCreatorStandard_Map

    public interface IdListCreator
    Interface for a IdList Creator. If we are interested in adding any other kind of IdList, we will have to define a creator which implements these three methods. 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 Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addAppearance​(IDList idlist, java.lang.Integer sequence, java.lang.Integer timestamp, java.lang.Integer item)
      Add an appearance to an Idlist.
      void addAppearancesInSequence​(IDList idlist, java.lang.Integer sequence, java.util.List<Position> itemsets)
      Add several appearances in a same sequence to an Idlist
      IDList create()
      It creates an empty IdList.
      void initializeMaps​(java.util.Map<Item,​TrieNode> frequentItems, java.util.Map<Item,​java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>>> projectingDistanceMap, java.util.Map<java.lang.Integer,​java.lang.Integer> sequenceSize, java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>> itemsetSequenceSize)  
      void updateProjectionDistance​(java.util.Map<Item,​java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>>> projectingDistanceMap, Item item, int id, int size, int i)  
    • Method Detail

      • create

        IDList create()
        It creates an empty IdList.
        Returns:
        the idlist
      • addAppearance

        void addAppearance​(IDList idlist,
                           java.lang.Integer sequence,
                           java.lang.Integer timestamp,
                           java.lang.Integer item)
        Add an appearance to an Idlist.
      • addAppearancesInSequence

        void addAppearancesInSequence​(IDList idlist,
                                      java.lang.Integer sequence,
                                      java.util.List<Position> itemsets)
        Add several appearances in a same sequence to an Idlist
      • initializeMaps

        void initializeMaps​(java.util.Map<Item,​TrieNode> frequentItems,
                            java.util.Map<Item,​java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>>> projectingDistanceMap,
                            java.util.Map<java.lang.Integer,​java.lang.Integer> sequenceSize,
                            java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>> itemsetSequenceSize)
      • updateProjectionDistance

        void updateProjectionDistance​(java.util.Map<Item,​java.util.Map<java.lang.Integer,​java.util.List<java.lang.Integer>>> projectingDistanceMap,
                                      Item item,
                                      int id,
                                      int size,
                                      int i)