[][src]Function dci::parallel::closed

pub fn closed<D>(dataset: &D, min_sup: usize) -> Box<[(D::ItemSet, Support)]> where
    D: DataSet + Sync,
    D::ItemSet: Send + Sync,
    &'a D::ItemSet: IntoIterator<Item = usize>, 

Parallel implementation of the DCI-Closed algorithm. This implementation is a simple adaptation of the original algorithm from the paper, using Rayon. It should use all the CPU cores.

The returned collection will always have at least one element, with maximum support: the set of all elements which occur in all transactions.

Panics

This should never really panic, but it might happen if something really bad happens with Rayon or the spawned tasks.