Package elki.result

Class 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
    • Field Detail

      • itemsets

        private java.util.List<Itemset> itemsets
        The supports of all frequent itemsets.
      • 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 - Metadata
        total - Total number of transactions
    • Method Detail

      • getItemsets

        public java.util.List<Itemset> getItemsets()
        Returns the frequent item sets.
        Returns:
        the frequent item sets.
      • getTotal

        public int getTotal()
        Get the total number of transactions.
        Returns:
        Total transactions