Trait abow::BoWTrait[][src]

pub trait BoWTrait {
    fn l1(&self, other: &Self) -> f32;
fn l2(&self, other: &Self) -> f32; }

Provides method(s) for computing the similarity score between bow vectors.

Required methods

fn l1(&self, other: &Self) -> f32[src]

Compute L1 norm between two BoW. (Used in Galvez (Eq 2)).

fn l2(&self, other: &Self) -> f32[src]

Loading content...

Implementors

impl BoWTrait for BoW[src]

fn l2(&self, _other: &Self) -> f32[src]

Not sure if needed

Loading content...