public class FrequentItemsetsResult extends BasicResult implements TextWriteable
Modifier and Type | Field and Description |
---|---|
private java.util.List<Itemset> |
itemsets
The supports of all frequent itemsets.
|
private VectorFieldTypeInformation<BitVector> |
meta
Metadata of the data relation, for item labels.
|
private int |
total
Total number of transactions.
|
Constructor and Description |
---|
FrequentItemsetsResult(java.lang.String name,
java.lang.String shortname,
java.util.List<Itemset> itemsets,
VectorFieldTypeInformation<BitVector> meta,
int total)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Itemset> |
getItemsets()
Returns the frequent item sets.
|
VectorFieldTypeInformation<BitVector> |
getMeta()
Get the metadata used for serialization.
|
int |
getTotal()
Get the total number of transactions.
|
void |
writeToText(TextWriterStream out,
java.lang.String label)
Write self to the given
TextWriterStream |
getLongName, getShortName
addChildResult, getHierarchy, setHierarchy
private java.util.List<Itemset> itemsets
private VectorFieldTypeInformation<BitVector> meta
private int total
public FrequentItemsetsResult(java.lang.String name, java.lang.String shortname, java.util.List<Itemset> itemsets, VectorFieldTypeInformation<BitVector> meta, int total)
name
- The long name (for pretty printing)shortname
- the short name (for filenames etc.)itemsets
- Frequent itemsets (sorted, by size then lexicographically)meta
- Metadatatotal
- Total number of transactionspublic java.util.List<Itemset> getItemsets()
public void writeToText(TextWriterStream out, java.lang.String label)
TextWriteable
TextWriterStream
writeToText
in interface TextWriteable
out
- Output writerlabel
- Labelpublic VectorFieldTypeInformation<BitVector> getMeta()
public int getTotal()
Copyright © 2019 ELKI Development Team. License information.