Data Structures | |
class | InputData |
Class for reading transactions from an ASCII file. More... | |
class | ItemsetOutput |
Output itemsets to a file. More... | |
class | Transaction |
Transaction (itemlist) from a database. More... | |
Functions | |
void | AddToF1 (TreeNode *newNode) |
Insert pointer to node in order of increasing support. | |
void | F1UsingProb (double P) |
Create bitmaps filled randomly with probability p. | |
void | F1FromFile (char *filename, bool isAsciiFile) |
Read transaction data from file and build item bitmaps. | |
void | PrintMFI () |
To print the MFI data out to an ASCII file with each entry having the format: [list of items in MFI entry...] [(support)]. | |
ItemsetOutput (char *filename) | |
Open file for outputting itemsets. | |
~ItemsetOutput () | |
Close file output stream. | |
int | isOpen () |
Check if file is open. | |
void | printSet (int length, int *iset, int support=-1) |
Print out an itemset. | |
Transaction * | getNextTransaction () |
Get next transaction from the input file. | |
InputData (char *filename, int *ITEMBUFFER, bool IS_ASCII) | |
Open the input file. | |
~InputData () | |
Close the input file. | |
int | isOpen () |
Check if the input file is open. |
Outputting the frequent itemsets.
|
Insert pointer to node in order of increasing support.
Definition at line 200 of file Mafia.cpp. Referenced by F1FromFile(), and F1UsingProb(). |
|
Read transaction data from file and build item bitmaps. If the data is in ascii form: [itemid_1] [itemid_2] ... [itemid_n] If the data is in binary form: [custid] [transid] [number of items] [itemid_1] [itemid_2] ... [itemid_n]
|
|
Create bitmaps filled randomly with probability p.
|
|
Get next transaction from the input file.
Definition at line 52 of file Transaction.cpp. Referenced by F1FromFile(). |
|
Open the input file.
Definition at line 123 of file Transaction.cpp. |
|
Check if the input file is open.
Definition at line 145 of file Transaction.cpp. Referenced by F1FromFile(). |
|
Check if file is open.
Definition at line 67 of file ItemsetOutput.cpp. Referenced by PrintMFI(). |
|
Open file for outputting itemsets.
Definition at line 50 of file ItemsetOutput.cpp. |
|
To print the MFI data out to an ASCII file with each entry having the format: [list of items in MFI entry...] [(support)].
|
|
Print out an itemset.
Definition at line 81 of file ItemsetOutput.cpp. Referenced by AddToFI(), and PrintMFI(). |
|
Close the input file.
Definition at line 136 of file Transaction.cpp. |
|
Close file output stream.
Definition at line 57 of file ItemsetOutput.cpp. |