Documentation of 'ca.pfv.spmf.algorithms.frequentpatterns.two_phase.UtilityTransactionDatabaseTP' Java class
UtilityTransactionDatabaseTP
ca.pfv.spmf.algorithms.frequentpatterns.two_phase

Class UtilityTransactionDatabaseTP



  • public class UtilityTransactionDatabaseTP
    extends java.lang.Object
    This class represents a transaction database with utility values, as used by the Two-Phase algorithm for high utility itemset mining.
    See Also:
    AlgoTwoPhase, TransactionTP
    • Constructor Detail

      • UtilityTransactionDatabaseTP

        public UtilityTransactionDatabaseTP()
    • Method Detail

      • addTransaction

        public void addTransaction(TransactionTP t)
        Add a transaction.
        Parameters:
        t - the transaction to be added
      • loadFile

        public void loadFile(java.lang.String path)
                      throws java.io.IOException
        Load a transaction database from a file.
        Parameters:
        path - the path of the file
        Throws:
        java.io.IOException - exception if error while reading the file.
      • printDatabase

        public void printDatabase()
        Print this database to System.out.
      • size

        public int size()
        Get the number of transactions.
        Returns:
        a int
      • getTransactions

        public java.util.List<TransactionTP> getTransactions()
        Get the list of transactions.
        Returns:
        the list of Transactions.
      • getAllItems

        public java.util.Set<java.lang.Integer> getAllItems()
        Get the set of items in this database.
        Returns:
        a Set of Integers

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.