pub struct AssociationRule {
pub antecedent: Vec<usize>,
pub consequent: Vec<usize>,
pub support: f64,
pub confidence: f64,
pub lift: f64,
}Expand description
Association rule: antecedent => consequent
Fields§
§antecedent: Vec<usize>Items in the antecedent (left side)
consequent: Vec<usize>Items in the consequent (right side)
support: f64Support: P(antecedent ∪ consequent)
confidence: f64Confidence: P(consequent | antecedent) = support / P(antecedent)
lift: f64Lift: confidence / P(consequent)
Trait Implementations§
Source§impl Clone for AssociationRule
impl Clone for AssociationRule
Source§fn clone(&self) -> AssociationRule
fn clone(&self) -> AssociationRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssociationRule
impl Debug for AssociationRule
Source§impl PartialEq for AssociationRule
impl PartialEq for AssociationRule
impl StructuralPartialEq for AssociationRule
Auto Trait Implementations§
impl Freeze for AssociationRule
impl RefUnwindSafe for AssociationRule
impl Send for AssociationRule
impl Sync for AssociationRule
impl Unpin for AssociationRule
impl UnwindSafe for AssociationRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more