Class AbstractFrequentItemsetAlgorithm

  • All Implemented Interfaces:
    Algorithm
    Direct Known Subclasses:
    APRIORI, Eclat, FPGrowth

    public abstract class AbstractFrequentItemsetAlgorithm
    extends java.lang.Object
    implements Algorithm
    Abstract base class for frequent itemset mining.
    Since:
    0.7.0
    Author:
    Erich Schubert
    • Field Detail

      • minsupp

        private double minsupp
        Minimum support.
      • minlength

        protected int minlength
        Parameter for minimum and maximum length.
      • maxlength

        protected int maxlength
        Parameter for minimum and maximum length.
    • Constructor Detail

      • AbstractFrequentItemsetAlgorithm

        public AbstractFrequentItemsetAlgorithm​(double minsupp,
                                                int minlength,
                                                int maxlength)
        Constructor.
        Parameters:
        minsupp - Minimum support
        minlength - Minimum length
        maxlength - Maximum length
      • AbstractFrequentItemsetAlgorithm

        public AbstractFrequentItemsetAlgorithm​(double minsupp)
        Constructor.
        Parameters:
        minsupp - Minimum support
    • Method Detail

      • getMinimumSupport

        public int getMinimumSupport​(int size)
        Get the minimum support for a given data set size. Converts relative minimum support to absolute minimum support.
        Parameters:
        size - Data set size
        Returns:
        Minimum support