modelling.fiti
Class SimpleFiti

java.lang.Object
  extended by modelling.fiti.SimpleFiti

public class SimpleFiti
extends java.lang.Object

The class implementing the FITI algorithm. This implementation is based on the article: Efficient Mining of Intertransaction Association Rules, by A K H Tung, H lu, J Han and L Feng (2003).

Author:
Kjell-Inge Skogstad, Trond Řivind Eriksen and Ole Kristian Fivelstad

Constructor Summary
SimpleFiti(java.util.ArrayList transactions, TermList termList, double minSupport, double maxSupport, double minConfidence, double maxConfidence, int maxspan, int maxSetSize, boolean pruneRulesByOrderOfTime)
          Constructor initializing and defining the algorithm.
 
Method Summary
 ItemSet generateFiltVersion(ItemSet itemSet)
          Method used to retrieve a filt version (intra version) of a itemset.
 java.util.ArrayList getLargeSets()
          Method used to get all large inter itemsets.
 java.lang.String getPrintableItem(InterItem item)
          Method for getting a printable version of an item.
 java.util.ArrayList getRules()
          Method used to get all rules generated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFiti

public SimpleFiti(java.util.ArrayList transactions,
                  TermList termList,
                  double minSupport,
                  double maxSupport,
                  double minConfidence,
                  double maxConfidence,
                  int maxspan,
                  int maxSetSize,
                  boolean pruneRulesByOrderOfTime)
Constructor initializing and defining the algorithm.

Parameters:
transactions - The transactions
termList - The list of terms
minSupport - Minimum support
maxSupport - Maximum support
minConfidence - Minimum confidence
maxConfidence - Maximum confidence
maxspan - Maxspan
maxSetSize - Maximum set size
pruneRulesByOrderOfTime - Pruning rules by order of time
Method Detail

getPrintableItem

public java.lang.String getPrintableItem(InterItem item)
Method for getting a printable version of an item.

Parameters:
item - The item
Returns:
The string representation

getLargeSets

public java.util.ArrayList getLargeSets()
Method used to get all large inter itemsets.

Returns:
List of large inter itemsets.

getRules

public java.util.ArrayList getRules()
Method used to get all rules generated.

Returns:
List of rules

generateFiltVersion

public ItemSet generateFiltVersion(ItemSet itemSet)
Method used to retrieve a filt version (intra version) of a itemset. Used in finding filt indexes.

Parameters:
itemSet - The itemset
Returns:
The filt version of the itemset