org.carrot2.filter.haog.fi.algorithm
Class AprioriEngine

java.lang.Object
  extended by org.carrot2.filter.haog.fi.algorithm.AprioriEngine

public class AprioriEngine
extends Object

Class containing main logic for Apriori based algorithm. It contains methods for frequent itemsets generation.

Author:
Karol GoĊ‚embniak

Constructor Summary
AprioriEngine()
          Default constructor.
 
Method Summary
 void addTokenizedDocument(TokenizedDocument document)
          This method adds document for processing.
 void flushResources()
          This method releases resources connected with this object.
 List getClusters(FIParameters params)
          Gets clusters created by Apriori based algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AprioriEngine

public AprioriEngine()
Default constructor.

Method Detail

flushResources

public void flushResources()
This method releases resources connected with this object.


addTokenizedDocument

public void addTokenizedDocument(TokenizedDocument document)
This method adds document for processing. WordBasket and Transaction objects are created from given document.

Parameters:
document - - Document to add to processing.

getClusters

public List getClusters(FIParameters params)
Gets clusters created by Apriori based algorithm.

Parameters:
params - - Parameters for algorithm.
Returns:
- List of cluster created by Apriori based algorithm.


Copyright (c) Dawid Weiss, Stanislaw Osinski