com.rapidminer.operator.learner.associations
Class FrequentItemSet

java.lang.Object
  extended by com.rapidminer.operator.learner.associations.FrequentItemSet
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<FrequentItemSet>

public class FrequentItemSet
extends java.lang.Object
implements java.lang.Comparable<FrequentItemSet>, java.lang.Cloneable, java.io.Serializable

A frequent item set contains a set of frequent Items.

Author:
Sebastian Land, Ingo Mierswa
See Also:
Serialized Form

Constructor Summary
FrequentItemSet()
           
FrequentItemSet(java.util.ArrayList<Item> items, int frequency)
           
 
Method Summary
 void addItem(Item item, int frequency)
           
 java.lang.Object clone()
           
 int compareTo(FrequentItemSet o)
          This method compares FrequentItemSets.
 boolean equals(java.lang.Object o)
          this method returns true if the frequent Items set are equal in size and items.
 int getFrequency()
           
 Item getItem(int index)
           
 java.util.Collection<Item> getItems()
           
 java.lang.String getItemsAsString()
          This method returns a representation of the items
 int getNumberOfItems()
           
 int hashCode()
           
 java.lang.String toString()
          This method should return a proper String representation of this frequent Item Set
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FrequentItemSet

public FrequentItemSet()

FrequentItemSet

public FrequentItemSet(java.util.ArrayList<Item> items,
                       int frequency)
Method Detail

addItem

public void addItem(Item item,
                    int frequency)

getItems

public java.util.Collection<Item> getItems()

getItem

public Item getItem(int index)

getNumberOfItems

public int getNumberOfItems()

getFrequency

public int getFrequency()

compareTo

public int compareTo(FrequentItemSet o)
This method compares FrequentItemSets. It first compares the length of items sets, then the items itself. If they are the same, the Sets are equal.

Specified by:
compareTo in interface java.lang.Comparable<FrequentItemSet>

equals

public boolean equals(java.lang.Object o)
this method returns true if the frequent Items set are equal in size and items.

Overrides:
equals in class java.lang.Object

hashCode

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

getItemsAsString

public java.lang.String getItemsAsString()
This method returns a representation of the items


toString

public java.lang.String toString()
This method should return a proper String representation of this frequent Item Set

Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object


Copyright © 2001-2009 by Rapid-I