Created
August 17, 2016 15:13
-
-
Save kell18/d519511c94a3a96064ec6d01a4b33356 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Remove candidates that has support less than mininmum support */ | |
ItemSetList<cpu> &L_cur = L[iset_size]; | |
L_cur.current = L_cur.start; | |
while (L_cur.current != NULL) | |
{ | |
size_t itmSpp = L_cur.current->itemSet->support.get(); | |
if (itmSpp < imin_s) | |
{ | |
L_cur.removeCurrentNode(); | |
} | |
else | |
{ | |
tmpout += "\nitems: { "; | |
for (size_t j = 0; j < iset_size; ++j) | |
{ | |
tmpout += std::to_string(L_cur.current->itemSet->items[j]); | |
tmpout += ", "; | |
} | |
tmpout += "}; count: "; | |
tmpout += std::to_string(itmSpp); | |
L_cur.current = L_cur.current->next; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment