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();
        ProbMinHash3a{m:nbhash, 
                maxvaluetracker: MaxValueTracker::new(nbhash as usize), 
                b_hasher : BuildHasherDefault::<H>::default(),
                exp01:ExpRestricted01::new(lambda), 
                to_be_processed : Vec::<(D, f64, Xoshiro256PlusPlus)>::new(),
                signature:h_signature}
    }
/// Allocates a new ProbMinHash3a structure with nbhash >= 2 functions and initial object initobj to fill signature.  
/// 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 ProbMinHash3a structure with nbhash >= 2 functions and initial object initobj to fill signature.
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 ProbMinHash3a structure with nbhash > = 2 functions and initial object initobj to fill signature . 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();
        ProbMinHash3a{m:nbhash, 
                maxvaluetracker: MaxValueTracker::new(nbhash as usize), 
                b_hasher : BuildHasherDefault::<H>::default(),
                exp01:ExpRestricted01::new(lambda), 
                to_be_processed : Vec::<(D, f64, Xoshiro256PlusPlus)>::new(),
                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 ( ) ; ProbMinHash3a { m : nbhash , maxvaluetracker : MaxValueTracker :: new ( nbhash as usize ) , b_hasher : BuildHasherDefault :: < H > :: default ( ) , exp01 : ExpRestricted01 :: new ( lambda ) , to_be_processed : Vec :: < ( D , f64 , Xoshiro256PlusPlus ) > :: new ( ) , signature : h_signature } }
Allocates a new ProbMinHash3a structure with nbhash >= 2 functions and initial object initobj to fill signature.
Allocates a new ProbMinHash3a structure with nbhash > = 2 functions and initial object initobj to fill signature .
nbhash
usize
initobj
D