org.apache.mahout.fpm.pfpgrowth.fpgrowth
Class FrequentPatternMaxHeap

java.lang.Object
  extended by org.apache.mahout.fpm.pfpgrowth.fpgrowth.FrequentPatternMaxHeap

public final class FrequentPatternMaxHeap
extends java.lang.Object

keeps top K Attributes in a TreeSet


Constructor Summary
FrequentPatternMaxHeap(int numResults, boolean subPatternCheck)
           
 
Method Summary
 boolean addable(long support)
           
 void addAll(FrequentPatternMaxHeap patterns, int attribute, long attributeSupport)
           
 int count()
           
 java.util.PriorityQueue<Pattern> getHeap()
           
 void insert(Pattern frequentPattern)
           
 boolean isFull()
           
 long leastSupport()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrequentPatternMaxHeap

public FrequentPatternMaxHeap(int numResults,
                              boolean subPatternCheck)
Method Detail

addable

public boolean addable(long support)

getHeap

public java.util.PriorityQueue<Pattern> getHeap()

addAll

public void addAll(FrequentPatternMaxHeap patterns,
                   int attribute,
                   long attributeSupport)

insert

public void insert(Pattern frequentPattern)

count

public int count()

isFull

public boolean isFull()

leastSupport

public long leastSupport()


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.