pub fn new(nbhash:usize, initobj:D) -> Self {
        let h_signature = (0..nbhash).map( |_| initobj).collect();
        let betas : Vec<f64> = (0..nbhash).map(| x | (nbhash as f64)/ (nbhash - x - 1) as f64).collect();
        ProbMinHash2{ m:nbhash, 
                    b_hasher :  BuildHasherDefault::<H>::default(),
                    maxvaluetracker: MaxValueTracker::new(nbhash as usize), 
                    permut_generator : FYshuffle::new(nbhash),
                    betas : betas,
                    signature:h_signature}
    }
/// Allocates a ProbMinHash2 structure with nbhash hash functions and initialize signature with initobj (typically 0 for numeric objects)
Allocates a ProbMinHash2 structure with nbhash hash functions and initialize signature with initobj (typically 0 for numeric objects)
Allocates a ProbMinHash2 structure with nbhash hash functions and initialize signature with initobj ( typically 0 for numeric objects )
pub fn new(nbhash:usize, initobj:D) -> Self {
        let h_signature = (0..nbhash).map( |_| initobj).collect();
        let betas : Vec<f64> = (0..nbhash).map(| x | (nbhash as f64)/ (nbhash - x - 1) as f64).collect();
        ProbMinHash2{ m:nbhash, 
                    b_hasher :  BuildHasherDefault::<H>::default(),
                    maxvaluetracker: MaxValueTracker::new(nbhash as usize), 
                    permut_generator : FYshuffle::new(nbhash),
                    betas : betas,
                    signature:h_signature}
    }
pub fn new ( nbhash : usize , initobj : D ) -> Self { let h_signature = ( 0 .. nbhash ) . map ( | _ | initobj ) . collect ( ) ; let betas : Vec < f64 > = ( 0 .. nbhash ) . map ( | x | ( nbhash as f64 ) / ( nbhash - x - 1 ) as f64 ) . collect ( ) ; ProbMinHash2 { m : nbhash , b_hasher : BuildHasherDefault :: < H > :: default ( ) , maxvaluetracker : MaxValueTracker :: new ( nbhash as usize ) , permut_generator : FYshuffle :: new ( nbhash ) , betas : betas , signature : h_signature } }
Allocates a ProbMinHash2 structure with nbhash hash functions and initialize signature with initobj (typically 0 for numeric objects)
Allocates a ProbMinHash2 structure with nbhash hash functions and initialize signature with initobj ( typically 0 for numeric objects )
nbhash
usize
initobj
D