[][src]Trait probminhash::probminhasher::WeightedSet

pub trait WeightedSet {
    type Object;
    pub fn get_weight(&self, obj: &Self::Object) -> f64;
}

A Trait to define association of a weight to an object. Typically we could implement trait WeightedSet for any collection of Object if we have a function giving a weight to each object Then hash_wset function can be used.

Associated Types

Loading content...

Required methods

pub fn get_weight(&self, obj: &Self::Object) -> f64[src]

returns the weight of an object

Loading content...

Implementors

Loading content...