ca.pfv.spmf.algorithms.frequentpatterns.uapriori
Class UncertainTransactionDatabase
- java.lang.Object
-
- ca.pfv.spmf.algorithms.frequentpatterns.uapriori.UncertainTransactionDatabase
-
public class UncertainTransactionDatabase extends java.lang.ObjectThis class represents a transactions database with existential probabilities, as used by the UApriori algorithm uncertain itemset mining.
-
-
Constructor Summary
Constructors Constructor and Description UncertainTransactionDatabase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.Set<ItemUApriori>getAllItems()Get the set of items in this database.java.util.List<ItemsetUApriori>getTransactions()Get the list of transactions.voidloadFile(java.lang.String path)Load a transaction database from a file.voidprintDatabase()Print this database to System.out.intsize()Get the number of transactions.
-
-
-
Method Detail
-
loadFile
public void loadFile(java.lang.String path) throws java.io.IOExceptionLoad 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<ItemsetUApriori> getTransactions()
Get the list of transactions.- Returns:
- the list of Transactions.
-
getAllItems
public java.util.Set<ItemUApriori> getAllItems()
Get the set of items in this database.- Returns:
- a Set of Integers
-
-
DMelt 3.0 © DataMelt by jWork.ORG