Skip to content

Instantly share code, notes, and snippets.

@kell18
Created August 17, 2016 15:13
Show Gist options
  • Save kell18/d519511c94a3a96064ec6d01a4b33356 to your computer and use it in GitHub Desktop.
Save kell18/d519511c94a3a96064ec6d01a4b33356 to your computer and use it in GitHub Desktop.
/* 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