|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.mine.subgroupminer.freqitemset.FrequentItemSetRow
public class FrequentItemSetRow
This class implements one row of a FrequentItemSetTable. Beside the normal DataRow functionality it provides information about the length of the frequent item set, the support of it, whether it is closed, resp. maximal or not. Each item in the set is realised as a StringValue (the name of the item).
| Constructor Summary | |
|---|---|
FrequentItemSetRow(RowKey key,
List<String> items,
int length,
double support)
Creates a FrequentItemSetRow from the passed arguments. |
|
FrequentItemSetRow(RowKey key,
List<String> items,
int length,
double support,
boolean isClosed,
boolean isMaximal)
Creates a FrequentItemSetRow from the passed arguments. |
|
| Method Summary | |
|---|---|
Set<String> |
asSet()
Returns the items as a set of Strings. |
static Set<String> |
extractItemNamesFrom(DefaultRow row)
Extracts the itemset names from a Default row, which was a former itemset row. |
DataCell |
getCell(int index)
Returns the DataCell at the provided index within this row. |
RowKey |
getKey()
Returns the row key. |
int |
getNumCells()
Returns the length of this row, that is the number of columns of the DataTable (not including the row key). |
int |
getSetLength()
Returns the number of items in the represented frequent itemset. |
double |
getSupport()
Returns the support of the represented frequent itemset. |
static double |
getSupportFrom(DefaultRow row)
Returns the support of a former frequent itemset row. |
boolean |
isClosed()
Returns whether the represented itemset is closed or not. |
boolean |
isMaximal()
|
Iterator<DataCell> |
iterator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FrequentItemSetRow(RowKey key,
List<String> items,
int length,
double support,
boolean isClosed,
boolean isMaximal)
key - the unique row keyitems - the names of the items in the set as stringslength - the length of the item set (which might be different from
the length of the row!)support - the support of the item setisClosed - true if the item set is closed,
false otherwiseisMaximal - true if the set is maximal,
false otherwise
public FrequentItemSetRow(RowKey key,
List<String> items,
int length,
double support)
false.
key - the unique row keyitems - the names of the items in the set as stringslength - the length of the item set (which might be different from
the length of the row!)support - the support of the item set| Method Detail |
|---|
public static Set<String> extractItemNamesFrom(DefaultRow row)
row - a former frequent itemset row
public static double getSupportFrom(DefaultRow row)
row - a former frequent itemset row
public int getNumCells()
getNumCells in interface DataRowpublic Iterator<DataCell> iterator()
iterator in interface Iterable<DataCell>public RowKey getKey()
getKey in interface DataRowpublic DataCell getCell(int index)
DataCell at the provided index within this row.
getCell in interface DataRowindex - the index of the cell to retrieve (indices start from 0)
DataCell at the given indexpublic double getSupport()
public int getSetLength()
public Set<String> asSet()
public boolean isClosed()
public boolean isMaximal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||