probminhash 0.1.12

Minhash algorithms for weighted Jaccard index
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! trait weighted set
//! 
//! 

/// 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.
pub trait WeightedSet {
    type Object;
    /// returns the weight of an object
    fn get_weight(&self, obj:&Self::Object) -> f64;
}