Data Structures | |
class | ResizableArray |
A data structure that provides a resizable array This is used within Spam to avoid reading input data files multiple times, without having to use any STL library classes. More... | |
class | StringMap |
A data structure that acts as a two-way one-to-one mapping from integers to strings Optimized for SPAM to quickly retrieve customer IDs, transaction IDs, and item IDs from their corresponding string names, and vice versa. More... | |
Functions | |
DatasetInfo * | ReadDataset (bool isBinaryFile, bool isStringFile, char *filename, double minSupPercent, StringMap *&custStrMap, StringMap *&transStrMap, StringMap *&itemStrMap) |
It reads the input file and finds the frequent-1 itemsets. | |
int | compare (const void *arg1, const void *arg2) |
void | LogStdoutSequence (const int c) |
void | LogFileSequence (const int c) |
void | LogSequence (const int c) |
void | CreateOrBitmap (SeqBitmap **f1, int *indexList, int indexLength, SeqBitmap *&orBitmap) |
OR's all of the frequent-1 itemset bitmaps together This is used to create the refBitmap for bitmap compression. | |
void | Compress (SeqBitmap *refBitmap, SeqBitmap *tempAndBitmap, SeqBitmap *&returnBitmap, SeqBitmap **f1, SeqBitmap **newF1, int *indexList, int indexLength) |
Perform compression on a sequence bitmap. | |
void | FindSequentialPatterns (TreeNode *curNode) |
A recursive call that goes down the search lattice to find sequential patterns. | |
void | StartMining (DatasetInfo *info) |
Start the mining algorithm by generating the initial TreeNode to start recursing from. | |
void | PrintError () |
int | main (int argc, char **argv) |
|
Definition at line 140 of file Spam.cpp. Referenced by FindSequentialPatterns(), and StartMining(). |
|
Perform compression on a sequence bitmap. Compression converts as many Bitmap64 bits as possible to Bitmap32 bits, Bitmap32 to Bitmap16, and so on, with the goal of speeding up support counting. We can only get rid of a given bit in a bitmap if it will never be used further on down the tree. The refBitmap parameter should contain a 0 for every bit that is never again used, and a 1 for a bit that is used again. Note that the frequent-1 itemset bitmaps are also compressed so that their bits are still aligned with the sequence bitmap after compression.
Definition at line 481 of file Spam.cpp. Referenced by FindSequentialPatterns(). |
|
OR's all of the frequent-1 itemset bitmaps together This is used to create the refBitmap for bitmap compression.
Definition at line 449 of file Spam.cpp. Referenced by FindSequentialPatterns(). |
|
A recursive call that goes down the search lattice to find sequential patterns.
Definition at line 681 of file Spam.cpp. Referenced by StartMining(). |
|
Definition at line 297 of file Spam.cpp. Referenced by LogSequence(). |
|
Definition at line 149 of file Spam.cpp. Referenced by FindSequentialPatterns(), and StartMining(). |
|
Definition at line 158 of file Spam.cpp. Referenced by LogSequence(). |
|
|
|
Definition at line 1246 of file Spam.cpp. Referenced by main(). |
|
It reads the input file and finds the frequent-1 itemsets.
Definition at line 877 of file FileInput.cpp. Referenced by main(). |
|
Start the mining algorithm by generating the initial TreeNode to start recursing from.
Definition at line 1163 of file Spam.cpp. Referenced by main(). |