modelling.fiti.data
Class FitTable

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

public class FitTable
extends java.lang.Object

Class implementing a FIT table according to article; Efficient Mining of Intertransaction Association Rules, by A K H Tung, H lu, J Han and L Feng (2003). Each entry in the table consists of a list of itemsets and a timestamp. Only contains itemsets with items with filt index.

Author:
Kjell-Inge Skogstad and Trond Řivind Eriksen

Constructor Summary
FitTable()
          Constructor creating a new FIT table.
 
Method Summary
 void addEntry(int timestamp)
          Method for adding an entry with a given timestamp.
 void addSet(int timestamp, int setId)
          Method for adding an itemset to a specified entry in the table.
 java.util.ArrayList getSets(int index)
          Method for getting the itemsets of an entry.
 int getTimestamp(int index)
          Method for getting the timestamp of an entry
 int size()
          Method returning the number of entries in the FIT table.
 java.lang.String toString()
          Method for getting a printable representation of the FIT table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FitTable

public FitTable()
Constructor creating a new FIT table.

Method Detail

size

public int size()
Method returning the number of entries in the FIT table.

Returns:
Number of entries

addEntry

public void addEntry(int timestamp)
Method for adding an entry with a given timestamp.

Parameters:
timestamp - The timestamp

addSet

public void addSet(int timestamp,
                   int setId)
Method for adding an itemset to a specified entry in the table.

Parameters:
timestamp - The timestamp
setId - The index of the itemset

getSets

public java.util.ArrayList getSets(int index)
Method for getting the itemsets of an entry.

Parameters:
index - The index
Returns:
List of itemsets

getTimestamp

public int getTimestamp(int index)
Method for getting the timestamp of an entry

Parameters:
index - The index
Returns:
The timestamp

toString

public java.lang.String toString()
Method for getting a printable representation of the FIT table.

Overrides:
toString in class java.lang.Object