modelling.fiti.data
Class Filt

java.lang.Object
  extended by modelling.fiti.data.Filt

public class Filt
extends java.lang.Object

Class implementing the Filt structure described in article; Efficient Mining of Intertransaction Association Rules, by A K H Tung, H lu, J Han and L Feng (2003).

Author:
Kjell-Inge Skogstad

Constructor Summary
Filt()
          Constructor creatin a new FILT instance.
 
Method Summary
 void addItemSet(ItemSet set)
          Method for adding an itemset.
 int findIndexOfSet(ItemSet set)
          Method for getting the index of a given itemset.
 java.util.ArrayList getAllObjectsIn(int index)
          Method for gettin all items, itemsets of size 1, in given itemset.
 java.util.ArrayList getChildrenOf(int index)
          Method for getting all children of given itemset.
 java.util.ArrayList getFirstItemSets()
          Method for gettin all itemsets of size 1.
 ItemSet getItemSet(int index)
          Mehtod for getting an itemset.
 int size()
          Method for getting the size of, the number itemsets in, the filt structure
 java.lang.String toString()
          Methodd for getting a printable representation of the filt structure.
 void updatePointers()
          Method for generating pointers between parents -> children, and parents -> elements, where elements are all single items in the itemset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Filt

public Filt()
Constructor creatin a new FILT instance.

Method Detail

addItemSet

public void addItemSet(ItemSet set)
Method for adding an itemset.

Parameters:
set - The itemset

updatePointers

public void updatePointers()
Method for generating pointers between parents -> children, and parents -> elements, where elements are all single items in the itemset.


getItemSet

public ItemSet getItemSet(int index)
Mehtod for getting an itemset.

Parameters:
index - The index
Returns:
The itemset

getFirstItemSets

public java.util.ArrayList getFirstItemSets()
Method for gettin all itemsets of size 1. That is, the first itemsets.

Returns:
List of itemsets

getChildrenOf

public java.util.ArrayList getChildrenOf(int index)
Method for getting all children of given itemset. That is, all itemsets of size + 1, and which contain the given itemset as well.

Parameters:
index - The index of parent itemset
Returns:
List of children itemsets

size

public int size()
Method for getting the size of, the number itemsets in, the filt structure

Returns:
Size

getAllObjectsIn

public java.util.ArrayList getAllObjectsIn(int index)
Method for gettin all items, itemsets of size 1, in given itemset.

Parameters:
index - The index
Returns:
List of itemsets

findIndexOfSet

public int findIndexOfSet(ItemSet set)
Method for getting the index of a given itemset. Note that the method only handles itemsets where the items have termlist index. (Filt version).


toString

public java.lang.String toString()
Methodd for getting a printable representation of the filt structure.

Overrides:
toString in class java.lang.Object