Data Structures | |
struct | CountInfo |
class | DatasetInfo |
A class for representing the info gathered from the dataset. More... | |
Functions | |
void | PrintFileReadError (int errorType) |
It prints an error related to the data file input. | |
void | IncArraySize (int *&array, int oldSize, int newSize) |
It resizes the array to have an increased size. | |
bool | CollectBinaryInfo (char *filename, int &custCount, int &itemCount, int &transCount, int *&custTransCount, int *&itemCustCount, int *&cids, int *&tids, int *&iids, int *&transLens, int &overallCount, int &transLensLength) |
It collects information about a binary data file. | |
bool | CollectASCIIInfo (char *filename, bool isStringFile, StringMap *&custStrMap, StringMap *&transStrMap, StringMap *&itemStrMap, int &custCount, int &itemCount, int &lineCount, int *&custTransCount, int *&itemCustCount, int *&cids, int *&tids, int *&iids, int &overallCount) |
It collects information about an ASCII data file. | |
bool | ReadBinary (char *filename, int *cids, int *tids, int *iids, int numEntries, int *transLens, int transLensLength, int *custBitmapMap, int **custMap, int *itemMap, SeqBitmap **f1Buff) |
It reads stores the binary data file. | |
bool | ReadASCII (char *filename, int *cids, int *tids, int *iids, int numEntries, int *custBitmapMap, int **custMap, int *itemMap, SeqBitmap **f1Buff) |
It reads stores the ASCII data file. | |
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. | |
Variables | |
const int | NUM_BITMAP = 5 |
number of different bitmaps in SeqBitmap | |
const int | BITMAP_LENGTH [5] |
the size of each customer data in each bitmap | |
const int | NUM_BITMAPS_USED = 4 |
tempAndBitmap, specialBitmap, returnBitmap, SBitmap | |
const int | MAX_STRING_SIZE = 256 |
Maximum length of strings used to represent customers, transactions, and items when -str is used. |
|
It collects information about an ASCII data file. It finds the number of customers, the number of items, the number of line in the file. It also finds the number of transactions each customer has and the number of customers having a particular item in their transactions. Note:
Definition at line 398 of file FileInput.cpp. Referenced by ReadDataset(). |
|
It collects information about a binary data file. It finds the number of customers, the number of items, the number of transactions in the dataset. It also finds the number of transactions each customer has and the number of customers having a particular item in their transactions. Note:
Definition at line 178 of file FileInput.cpp. Referenced by ReadDataset(). |
|
It resizes the array to have an increased size.
Definition at line 129 of file FileInput.cpp. Referenced by CollectASCIIInfo(), and CollectBinaryInfo(). |
|
It prints an error related to the data file input.
Definition at line 83 of file FileInput.cpp. Referenced by CollectASCIIInfo(), CollectBinaryInfo(), and ReadDataset(). |
|
It reads stores the ASCII data file. Note:
Definition at line 774 of file FileInput.cpp. |
|
It reads stores the binary data file. Note:
Definition at line 642 of file FileInput.cpp. |
|
It reads the input file and finds the frequent-1 itemsets.
Definition at line 877 of file FileInput.cpp. Referenced by main(). |
|
Initial value: { 4, 8, 16, 32, 64 }
Definition at line 65 of file FileInput.cpp. Referenced by ReadASCII(), ReadBinary(), and ReadDataset(). |
|
Maximum length of strings used to represent customers, transactions, and items when -str is used.
Definition at line 75 of file FileInput.cpp. Referenced by CollectASCIIInfo(). |
|
number of different bitmaps in SeqBitmap
Definition at line 62 of file FileInput.cpp. Referenced by ReadDataset(). |
|
tempAndBitmap, specialBitmap, returnBitmap, SBitmap
Definition at line 71 of file FileInput.cpp. |