Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataMining.AssociationRules.Itemset Class Reference

Inheritance diagram for kddml.Core.DataMining.AssociationRules.Itemset:

kddml.Core.DataMining.AssociationRules.ItemsetManager List of all members.

Public Member Functions

 Itemset ()
boolean addItem (ItemManager item)
void setSupport (double support)
Double getSupport ()
int getAbsoluteSupport (int num_transactions)
int getSize ()
Iterator getItems ()
boolean contain (ItemManager item)
boolean isSupported (TransactionManager transaction)
boolean equals (Object itemset)
TransactionManager toTransaction () throws AssociationModelException

Protected Member Functions

 Itemset (TreeSet< Item > items)

Detailed Description

An Itemset object contains 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. Single items that compose the itemset are stored in a tree set structure.

Title: KDDML

Description: Knowledge Discovery in Database Environment

Copyright: Copyright (c) 2003-2005

Company: Universita' di Pisa - Dipartimento di Informatica

Author:
Andrea Romei (romei@di.unipi.it)
Version:
2.0.16


Constructor & Destructor Documentation

kddml.Core.DataMining.AssociationRules.Itemset.Itemset  ) 
 

Empty constructor. Builds a new itemset without items.

kddml.Core.DataMining.AssociationRules.Itemset.Itemset TreeSet< Item items  )  [protected]
 

Constructor given the list of items as TreeSet.

Parameters:
items TreeSet


Member Function Documentation

boolean kddml.Core.DataMining.AssociationRules.Itemset.addItem ItemManager  item  ) 
 

Adds a new item to this itemset.

Parameters:
item Item
Returns:
boolean

Implements kddml.Core.DataMining.AssociationRules.ItemsetManager.

void kddml.Core.DataMining.AssociationRules.Itemset.setSupport double  support  ) 
 

Sets the support of this itemsets. Support must be a number between 0 and 1, inclusive.

Parameters:
support double

Implements kddml.Core.DataMining.AssociationRules.ItemsetManager.

Double kddml.Core.DataMining.AssociationRules.Itemset.getSupport  ) 
 

Returns the support ot the itemset in the model as a percentage in respect to the total number of transactions. It is a number between 0 and 1, inclusive. Can be null.

Returns:
Double

Implements kddml.Core.DataMining.AssociationRules.ItemsetManager.

int kddml.Core.DataMining.AssociationRules.Itemset.getAbsoluteSupport int  num_transactions  ) 
 

Returns the support for this itemset in terms of absolute count of transactions supporting it.

Parameters:
num_transactions int the total number of transactions used to build the itemset.
Returns:
int

Implements kddml.Core.DataMining.AssociationRules.ItemsetManager.

int kddml.Core.DataMining.AssociationRules.Itemset.getSize  ) 
 

Returns the number of items. Returns a value >=0.

Returns:
int

Implements kddml.Core.DataMining.AssociationRules.ItemsetManager.

Iterator kddml.Core.DataMining.AssociationRules.Itemset.getItems  ) 
 

Returns the list of items as iterator.

Returns:
Iterator

Implements kddml.Core.DataMining.AssociationRules.ItemsetManager.

boolean kddml.Core.DataMining.AssociationRules.Itemset.contain ItemManager  item  ) 
 

Tests if an item is contained in the itemset.

Parameters:
item Item
Returns:
boolean

Implements kddml.Core.DataMining.AssociationRules.ItemsetManager.

boolean kddml.Core.DataMining.AssociationRules.Itemset.isSupported TransactionManager  transaction  ) 
 

Tests if this itemset satisfy an input transaction. A transaction satisfy an itemset I1, ..., In if every item Ii with i in [1, m] occurs in the transaction.

Parameters:
transaction TransactionManager
Returns:
boolean

Implements kddml.Core.DataMining.AssociationRules.ItemsetManager.

boolean kddml.Core.DataMining.AssociationRules.Itemset.equals Object  itemset  ) 
 

Tests if two itemsets are equals, i.e., they contains the same items.

Parameters:
itemset Object
Returns:
boolean

Implements kddml.Core.DataMining.AssociationRules.ItemsetManager.

TransactionManager kddml.Core.DataMining.AssociationRules.Itemset.toTransaction  )  throws AssociationModelException
 

Returns the list of items as transaction.

Returns:
TransactionManager
Exceptions:
AssociationModelException 

Implements kddml.Core.DataMining.AssociationRules.ItemsetManager.


Generated on Thu Feb 23 13:04:38 2006 for kddml by  doxygen 1.4.3