public class CodeTable
extends com.rapidminer.operator.ResultObjectAdapter
implements java.lang.Iterable<com.rapidminer.operator.learner.associations.FrequentItemSet>, java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
CodeTable |
addToCodingSet(com.rapidminer.operator.learner.associations.FrequentItemSet newItemSet,
Database db)
Creates a new code table with a coding set that contains additionally to
the given coding set the newItemSet.
|
void |
cleanUp()
Removes unused item sets (sets with usage 0).
|
java.lang.Object |
clone() |
double |
getCodeLengthLeft(com.rapidminer.operator.learner.associations.FrequentItemSet itemSet)
Returns the size of itemSet
when its encoded by the standard code table. |
double |
getCodeLengthRight(com.rapidminer.operator.learner.associations.FrequentItemSet itemSet)
Returns the optimal code length of a specific itemset from this code
table or -1 if the itemset is not contained in this code table.
|
double |
getCompressedSize()
Returns the total compressed size of the encoded database and the code
table, in bits, as described in van Leeuwen, M.
|
java.util.SortedSet<com.rapidminer.operator.learner.associations.FrequentItemSet> |
getItemSets()
Returns the coding set of this code table.
|
int |
getNumberOfEntrys()
Returns the number of entries for this code table.
|
CodeTable |
getStandardCodeTable()
Returns the standard code table for this code table, which is used to
encode the left side of the code table.
|
static CodeTable |
getStandardCodeTable(Database db)
Creates a standard code table whose elements are sorted to the standard
cover order.
|
int |
getUsage(com.rapidminer.operator.learner.associations.FrequentItemSet itemSet)
Returns the usage of an itemset, i.e.
|
java.util.Iterator<com.rapidminer.operator.learner.associations.FrequentItemSet> |
iterator() |
CodeTable |
removeFromCodingSet(com.rapidminer.operator.learner.associations.FrequentItemSet delItemSet)
Creates a new code table whis is equal to this code table except that the
specified itemset is not contained.
|
java.lang.String |
toResultString() |
java.lang.String |
toString() |
addAction, cloneAnnotationsFrom, getActions, getAnnotations, getName, getResultIcon, log, log, logError, logNote, logWarning, toHTML
appendOperatorToHistory, copy, getLog, getProcessingHistory, getSource, initWriting, read, read, read, read, setLoggingHandler, setSource, write
public static CodeTable getStandardCodeTable(Database db)
db
- the database that is supposed to be encodedpublic CodeTable getStandardCodeTable()
public CodeTable addToCodingSet(com.rapidminer.operator.learner.associations.FrequentItemSet newItemSet, Database db)
newItemSet
- the item set to be added to the code tabledb
- the databasepublic CodeTable removeFromCodingSet(com.rapidminer.operator.learner.associations.FrequentItemSet delItemSet)
delItemSet
- the item set to be deleted in the new code tablepublic double getCompressedSize()
public java.util.SortedSet<com.rapidminer.operator.learner.associations.FrequentItemSet> getItemSets()
public double getCodeLengthLeft(com.rapidminer.operator.learner.associations.FrequentItemSet itemSet)
when its encoded by the standard code table.
Corresponds to the size of the entry in the left side of the code table.
itemSet
- an itemset of the code tablepublic double getCodeLengthRight(com.rapidminer.operator.learner.associations.FrequentItemSet itemSet)
itemSet
- the itemSet to be encoded by this code tablepublic int getNumberOfEntrys()
public int getUsage(com.rapidminer.operator.learner.associations.FrequentItemSet itemSet)
itemSet
- an itemset that is supposed to be contained inside the code
tablepublic java.util.Iterator<com.rapidminer.operator.learner.associations.FrequentItemSet> iterator()
iterator
in interface java.lang.Iterable<com.rapidminer.operator.learner.associations.FrequentItemSet>
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toResultString()
toResultString
in interface com.rapidminer.operator.ResultObject
toResultString
in class com.rapidminer.operator.ResultObjectAdapter
public java.lang.Object clone()
clone
in class java.lang.Object
public void cleanUp()
Copyright © 2001-2009 by Rapid-I