Documentation of 'ca.pfv.spmf.patterns.AbstractItemset' Java class
AbstractItemset
ca.pfv.spmf.patterns

Class AbstractItemset

  • Direct Known Subclasses:
    AbstractOrderedItemset


    public abstract class AbstractItemset
    extends java.lang.Object
    This is an abstract class for an itemset (a set of items.
    See Also:
    AbstractOrderedItemset, AbstractMutableOrderedItemset
    • Constructor Summary

      Constructors 
      Constructor and Description
      AbstractItemset() 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      abstract boolean contains(java.lang.Integer item)
      Check if this itemset contains a given item.
      abstract int getAbsoluteSupport()
      Get the support of this itemset
      abstract double getRelativeSupport(int nbObject)
      Get the relative support of this itemset (a percentage) as a double
      java.lang.String getRelativeSupportAsString(int nbObject)
      Get the relative support of this itemset as a string
      void print()
      print this itemset to System.out.
      abstract int size()
      Get the size of this itemset
      abstract java.lang.String toString()
      Get this itemset as a string
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractItemset

        public AbstractItemset()
    • Method Detail

      • size

        public abstract int size()
        Get the size of this itemset
        Returns:
        the size of this itemset
      • toString

        public abstract java.lang.String toString()
        Get this itemset as a string
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this itemset
      • print

        public void print()
        print this itemset to System.out.
      • getAbsoluteSupport

        public abstract int getAbsoluteSupport()
        Get the support of this itemset
        Returns:
        the support of this itemset
      • getRelativeSupport

        public abstract double getRelativeSupport(int nbObject)
        Get the relative support of this itemset (a percentage) as a double
        Parameters:
        nbObject - the number of transactions in the database where this itemset was found
        Returns:
        the relative support of the itemset as a double
      • getRelativeSupportAsString

        public java.lang.String getRelativeSupportAsString(int nbObject)
        Get the relative support of this itemset as a string
        Parameters:
        nbObject - the number of transactions in the database where this itemset was found
        Returns:
        the relative support of the itemset as a string
      • contains

        public abstract boolean contains(java.lang.Integer item)
        Check if this itemset contains a given item.
        Parameters:
        item - the item
        Returns:
        true if the item is contained in this itemset

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.