Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.result
Class AprioriResult

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.AprioriResult
All Implemented Interfaces:
Result

public class AprioriResult
extends Object
implements Result

Result class for Apriori Algorithm.

Author:
Erich Schubert

Field Summary
private  List<BitSet> solution
          The frequent itemsets.
private  Map<BitSet,Integer> supports
          The supports of all itemsets.
 
Constructor Summary
AprioriResult(List<BitSet> solution, Map<BitSet,Integer> supports)
          Constructor.
 
Method Summary
 String getName()
          Get a user-understandable name for this result.
 List<BitSet> getSolution()
          Returns the frequent item sets.
 Map<BitSet,Integer> getSupports()
          Returns the frequencies of the frequent item sets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

solution

private List<BitSet> solution
The frequent itemsets.


supports

private Map<BitSet,Integer> supports
The supports of all itemsets.

Constructor Detail

AprioriResult

public AprioriResult(List<BitSet> solution,
                     Map<BitSet,Integer> supports)
Constructor.

Parameters:
solution - Frequent itemsets
supports - Supports for the itemsets
Method Detail

getSolution

public List<BitSet> getSolution()
Returns the frequent item sets.

Returns:
the frequent item sets.

getSupports

public Map<BitSet,Integer> getSupports()
Returns the frequencies of the frequent item sets.

Returns:
the frequencies of the frequent item sets

getName

public String getName()
Description copied from interface: Result
Get a user-understandable name for this result. Defaults may be returned such as "list" for a list result.

Specified by:
getName in interface Result
Returns:
result name

Release 0.3 (2010-03-31_1612)