pub fn new(nbhash:usize, initobj : D) -> Self {
        assert!(nbhash >= 2);
        let lambda = ((nbhash as f64)/((nbhash - 1) as f64)).ln();
        let h_signature = (0..nbhash).map( |_| initobj).collect();
        ProbMinHash3{m:nbhash, b_hasher : BuildHasherDefault::<H>::default(), 
                    maxvaluetracker: MaxValueTracker::new(nbhash as usize), 
                    exp01:ExpRestricted01::new(lambda), signature:h_signature}
    }
/// Allocates a new ProbMinHash3 structure with nbhash functions and initial object initobj to fill signature.  
/// nbhash must be greater or equal to 2.
/// The precision on the final estimation depends on the number of hash functions.   
/// The initial object can be any object , typically 0 for numerical objects.
Allocates a new ProbMinHash3 structure with nbhash functions and initial object initobj to fill signature.
nbhash must be greater or equal to 2.
The precision on the final estimation depends on the number of hash functions.
The initial object can be any object , typically 0 for numerical objects.
Allocates a new ProbMinHash3 structure with nbhash functions and initial object initobj to fill signature . nbhash must be greater or equal to 2 . The precision on the final estimation depends on the number of hash functions . The initial object can be any object typically 0 for numerical objects .
pub fn new(nbhash:usize, initobj : D) -> Self {
        assert!(nbhash >= 2);
        let lambda = ((nbhash as f64)/((nbhash - 1) as f64)).ln();
        let h_signature = (0..nbhash).map( |_| initobj).collect();
        ProbMinHash3{m:nbhash, b_hasher : BuildHasherDefault::<H>::default(), 
                    maxvaluetracker: MaxValueTracker::new(nbhash as usize), 
                    exp01:ExpRestricted01::new(lambda), signature:h_signature}
    }
pub fn new ( nbhash : usize , initobj : D ) -> Self { assert ! ( nbhash 2 ) ; let lambda = ( ( nbhash as f64 ) / ( ( nbhash - 1 ) as f64 ) ) . ln ( ) ; let h_signature = ( 0 .. nbhash ) . map ( | _ | initobj ) . collect ( ) ; ProbMinHash3 { m : nbhash , b_hasher : BuildHasherDefault :: < H > :: default ( ) , maxvaluetracker : MaxValueTracker :: new ( nbhash as usize ) , exp01 : ExpRestricted01 :: new ( lambda ) , signature : h_signature } }
Allocates a new ProbMinHash3 structure with nbhash functions and initial object initobj to fill signature.
Allocates a new ProbMinHash3 structure with nbhash functions and initial object initobj to fill signature .
nbhash
usize
initobj
D