pub fn compute_probminhash_jaccard<D:Eq>(siga : &[D], sigb : &[D]) -> f64 {
    let sig_size = siga.len();
    assert_eq!(sig_size, sigb.len());
    let mut inter = 0;
    for i in 0..siga.len() {
        if siga[i] == sigb[i] {
            inter += 1;
        }
    }
    let jp = inter as f64/siga.len() as f64;
    jp
}
/// Computes the weighted jaccard index of 2 signatures.
/// The 2 signatures must come from two equivalent instances of the same ProbMinHash algorithm
/// with the same number of hash signatures. 
/// Note that if *jp* is the returned value of this function,  
/// the distance between siga and sigb, associated to the jaccard index is *1.- jp* 
Computes the weighted jaccard index of 2 signatures.
The 2 signatures must come from two equivalent instances of the same ProbMinHash algorithm
with the same number of hash signatures.
Note that if *jp* is the returned value of this function,
the distance between siga and sigb, associated to the jaccard index is *1.- jp
Computes the weighted jaccard index of 2 signatures . The 2 signatures must come from two equivalent instances of the same ProbMinHash algorithm with the same number of hash signatures . Note that if * jp * is the returned value of this function the distance between siga and sigb associated to the jaccard index is * 1 . - jp
pub fn compute_probminhash_jaccard<D:Eq>(siga : &[D], sigb : &[D]) -> f64 {
    let sig_size = siga.len();
    assert_eq!(sig_size, sigb.len());
    let mut inter = 0;
    for i in 0..siga.len() {
        if siga[i] == sigb[i] {
            inter += 1;
        }
    }
    let jp = inter as f64/siga.len() as f64;
    jp
}
pub fn compute_probminhash_jaccard < D : Eq > ( siga : & [ D ] , sigb : & [ D ] ) -> f64 { let sig_size = siga . len ( ) ; assert_eq ! ( sig_size sigb len ( ) ) ; let mut inter = 0 ; for i in 0 .. siga . len ( ) { if siga [ i ] == sigb [ i ] { inter += 1 ; } } let jp = inter as f64 / siga . len ( ) as f64 ; jp }
Computes the weighted jaccard index of 2 signatures.
Computes the weighted jaccard index of 2 signatures .
siga
&[D]
sigb
&[D]