javax.datamining.association
Interface Itemset


public interface Itemset

An Itemset object is a component of an association rule and consists of items. An itemset consists of one or more categorical values. For example, the itemset {milk, bread, butter} is composed of three items. The same categorical values can be referenced by multiple itemsets.

Author:
JSR-73 Java Data Mining Expert Group

Method Summary
 int getAbsoluteSupport()
          Returns the support of the itemset in terms of the number of cases that contain the itemset.
 java.lang.Object[] getItems()
          Returns an array of items contained in the itemset.
 int getSize()
          Returns the size of the itemset in terms of the number of items.
 double getSupport()
          Returns the support for this itemset in the model as a percentage of the total number of transactions.
 

Method Detail

getAbsoluteSupport

public int getAbsoluteSupport()
Returns the support of the itemset in terms of the number of cases that contain the itemset.

Returns:
int

getItems

public java.lang.Object[] getItems()
Returns an array of items contained in the itemset. This method cannot return null or an empty array.

Returns:
Object[]

getSize

public int getSize()
Returns the size of the itemset in terms of the number of items. The returned value must be a non-negative number.

Returns:
int

getSupport

public double getSupport()
Returns the support for this itemset in the model as a percentage of the total number of transactions. It is a number between 0 and 100, inclusive. This has the same interpretation as present in PMML and SQL/MM DM standards.

Returns:
double