|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttextclassifier.mining.largeItemset
public class largeItemset
Class representing a frequent itemset used to obtain association rules
Constructor Summary | |
---|---|
largeItemset()
Constructor of the class (only initialization) |
|
largeItemset(java.util.HashSet<fitem> fitems,
double support)
Constructor of the class (with set of items and support) |
|
largeItemset(java.util.HashSet<fitem> fitems,
int abs_supp)
Constructor of the class (with set of items and absolute support) |
Method Summary | |
---|---|
void |
addCategory(Category cat)
Adds a new category into the set of categories associated with the itemset |
void |
addItem(fitem id)
Adds item to the itemset |
int |
getAbsSupp()
Returns absolute support of frequent itemset |
java.util.HashSet<java.lang.Integer> |
getAttNames()
Gets a set of attribute names which correspond to the items of itemset |
java.util.HashSet<fitem> |
getItemSet()
Returns a set of items |
java.lang.String |
getSqlCondition()
Returns an SQL condition for WHERE clause corresponding to the content of itemset |
double |
getSupport()
Returns the support of frequent itemset |
boolean |
hasAtt(java.lang.String att_name)
Finds out, if some of the items contains given attribute |
boolean |
hasSameAtts(largeItemset lrg2)
Tests if an itemset has the same set of attributes in items as the second itemset |
void |
setAbsSupp(int supp)
Sets the absolute support value of the itemset |
void |
setItemSet(java.util.HashSet<fitem> itemset)
Sets itemset as itemset of LargeItemset object |
void |
setSupport(double supp)
Sets the support value of the itemset |
int |
size()
Returns size of the itemset |
java.lang.String |
toShortString()
Converts information about frequent itemset into a shorter string |
java.lang.String |
toString()
Converts information about frequent itemset into a string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public largeItemset()
public largeItemset(java.util.HashSet<fitem> fitems, int abs_supp)
fitems
- a set of itemsabs_supp
- absolute supportpublic largeItemset(java.util.HashSet<fitem> fitems, double support)
fitems
- a set of itemssupport
- supportMethod Detail |
---|
public boolean hasAtt(java.lang.String att_name)
att_name
- name of the attribute
public java.util.HashSet<fitem> getItemSet()
public void setItemSet(java.util.HashSet<fitem> itemset)
itemset
- itemset(ArrayList of integers)public void addItem(fitem id)
id
- ID of item, that will be added to the itemsetpublic int size()
public void addCategory(Category cat)
cat
- added categorypublic int getAbsSupp()
public double getSupport()
public void setAbsSupp(int supp)
supp
- value of absolute supportpublic void setSupport(double supp)
supp
- value of supportpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toShortString()
public java.lang.String getSqlCondition()
public java.util.HashSet<java.lang.Integer> getAttNames()
public boolean hasSameAtts(largeItemset lrg2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |