Package elki.result
Class FrequentItemsetsResult
- java.lang.Object
-
- elki.result.FrequentItemsetsResult
-
- All Implemented Interfaces:
TextWriteable
public class FrequentItemsetsResult extends java.lang.Object implements TextWriteable
Result class for frequent itemset mining algorithms.- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description FrequentItemsetsResult(java.util.List<Itemset> itemsets, VectorFieldTypeInformation<BitVector> meta, int total)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Itemset>getItemsets()Returns the frequent item sets.VectorFieldTypeInformation<BitVector>getMeta()Get the metadata used for serialization.intgetTotal()Get the total number of transactions.voidwriteToText(TextWriterStream out, java.lang.String label)Write self to the givenTextWriterStream
-
-
-
Field Detail
-
itemsets
private java.util.List<Itemset> itemsets
The supports of all frequent itemsets.
-
meta
private VectorFieldTypeInformation<BitVector> meta
Metadata of the data relation, for item labels.
-
total
private int total
Total number of transactions.
-
-
Constructor Detail
-
FrequentItemsetsResult
public FrequentItemsetsResult(java.util.List<Itemset> itemsets, VectorFieldTypeInformation<BitVector> meta, int total)
Constructor.- Parameters:
itemsets- Frequent itemsets (sorted, by size then lexicographically)meta- Metadatatotal- Total number of transactions
-
-
Method Detail
-
getItemsets
public java.util.List<Itemset> getItemsets()
Returns the frequent item sets.- Returns:
- the frequent item sets.
-
writeToText
public void writeToText(TextWriterStream out, java.lang.String label)
Description copied from interface:TextWriteableWrite self to the givenTextWriterStream- Specified by:
writeToTextin interfaceTextWriteable- Parameters:
out- Output writerlabel- Label
-
getMeta
public VectorFieldTypeInformation<BitVector> getMeta()
Get the metadata used for serialization.- Returns:
- Metadata
-
getTotal
public int getTotal()
Get the total number of transactions.- Returns:
- Total transactions
-
-