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

java.lang.Object
  extended by org.apache.mahout.fpm.pfpgrowth.fpgrowth.Pattern
All Implemented Interfaces:
java.lang.Comparable<Pattern>

public class Pattern
extends java.lang.Object
implements java.lang.Comparable<Pattern>

A in FPGrowth is a list of items (here int) and the support(the number of times the pattern is seen in the dataset)


Constructor Summary
Pattern()
           
 
Method Summary
 void add(int id, long supportCount)
           
 int compareTo(Pattern cr2)
           
 boolean equals(java.lang.Object obj)
           
 int[] getPattern()
           
 java.lang.Object[] getPatternWithSupport()
           
 int hashCode()
           
 boolean isSubPatternOf(Pattern frequentPattern)
           
 int length()
           
 long support()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pattern

public Pattern()
Method Detail

add

public final void add(int id,
                      long supportCount)

getPattern

public final int[] getPattern()

getPatternWithSupport

public final java.lang.Object[] getPatternWithSupport()

isSubPatternOf

public final boolean isSubPatternOf(Pattern frequentPattern)

length

public final int length()

support

public final long support()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(Pattern cr2)
Specified by:
compareTo in interface java.lang.Comparable<Pattern>


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