[][src]Struct dci::Matrix

pub struct Matrix<I>(pub BitMatrix, _);

A DataSet implemented as a BitMatrix, from the bitmatrix crate. This implementation provides optimal performance for the operations required by the DCI-Closed algorithm.

Use the From trait to instantiate this type.

This type is generic over the ItemSet type, which can be specialized for the number of items in the dataset. Once again, it is higly recommend that such itemset type is implemented using a bitset. The itemset must also provide an IntoIterator implementation:

This example is not tested
for<'a> &'a I: IntoIterator<Item = usize>

This implementation must yield the items in lexicographic order.

Trait Implementations

impl<I: Clone> Clone for Matrix<I>[src]

impl<I> DataSet for Matrix<I> where
    I: ItemSet,
    &'a I: IntoIterator<Item = usize>, 
[src]

type ItemSet = I

The type of a itemset for this dataset.

type Cover = BitBox

The type for a cover for this dataset. A cover is the set of transactions that supports an itemset. To obtain optimal performance, this should be implemented as a bitset. Read more

impl<I: Eq> Eq for Matrix<I>[src]

impl<I> From<BitMatrix> for Matrix<I>[src]

impl<I: Hash> Hash for Matrix<I>[src]

impl<'a, I> Into<&'a BitMatrix> for &'a Matrix<I>[src]

impl<I> Into<BitMatrix> for Matrix<I>[src]

impl<I: PartialEq> PartialEq<Matrix<I>> for Matrix<I>[src]

impl<I> StructuralEq for Matrix<I>[src]

impl<I> StructuralPartialEq for Matrix<I>[src]

Auto Trait Implementations

impl<I> RefUnwindSafe for Matrix<I> where
    I: RefUnwindSafe

impl<I> Send for Matrix<I> where
    I: Send

impl<I> Sync for Matrix<I> where
    I: Sync

impl<I> Unpin for Matrix<I> where
    I: Unpin

impl<I> UnwindSafe for Matrix<I> where
    I: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.