Documentation of 'ca.pfv.spmf.algorithms.associationrules.TopKRules_and_TNR.Transaction' Java class
Transaction
ca.pfv.spmf.algorithms.associationrules.TopKRules_and_TNR

Class Transaction



  • public class Transaction
    extends java.lang.Object
    This class represents a transaction optimized for the TNR and TopKRules algorithms for top-k association rule mining. In particular transactions are implemented as LinkedList for efficient removal of infrequent items as done by these algorithms.
    See Also:
    AlgoTNR, AlgoTopKRules, Database
    • Constructor Summary

      Constructors 
      Constructor and Description
      Transaction(int size)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addItem(java.lang.Integer item)
      Add an item to the transaction.
      java.util.List<java.lang.Integer> getItems()
      Get the list of items in this transaction
      • Methods inherited from class java.lang.Object

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

      • Transaction

        public Transaction(int size)
        Constructor
        Parameters:
        size - the size of the transaction
    • Method Detail

      • addItem

        public void addItem(java.lang.Integer item)
        Add an item to the transaction.
        Parameters:
        item - an item.
      • getItems

        public java.util.List<java.lang.Integer> getItems()
        Get the list of items in this transaction
        Returns:
        a List of Integers

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.