pub struct NearMatchConfig {
pub num_hashes: usize,
pub bands: usize,
pub min_shingles: usize,
pub max_length_ratio: f64,
pub min_estimated_jaccard: f64,
pub posting_cap: usize,
pub pair_budget: usize,
pub max_signed_units: usize,
pub near_miss_delta: f64,
pub near_miss_cap: usize,
}Expand description
Tuning for near-match candidate generation. Defaults are provisional and calibrated against the corpus with the funnel measurement.
Fields§
§num_hashes: usizeNumber of MinHash permutations per signature.
bands: usizeNumber of LSH bands. Rows per band is num_hashes / bands; a higher
band count raises recall at the cost of more candidate pairs.
min_shingles: usizeUnits with fewer distinct shingles than this are not signed.
max_length_ratio: f64Largest ratio of unit sizes (in nodes) a pair may span.
min_estimated_jaccard: f64Smallest estimated Jaccard a pair must reach to be emitted.
posting_cap: usizeLongest LSH bucket that still enters pairing; longer ones are dropped as high-frequency structure and counted.
pair_budget: usizeUpper bound on distinct candidate pairs examined.
max_signed_units: usizeLargest number of units admitted to the signature stage. Later eligible units are skipped deterministically and reported rather than causing the flat signature buffer to grow without bound.
near_miss_delta: f64Width of the diagnostic estimate band immediately below
Self::min_estimated_jaccard.
near_miss_cap: usizeMaximum below-threshold, size-compatible LSH proposals retained as diagnostic near misses.
Trait Implementations§
Source§impl Clone for NearMatchConfig
impl Clone for NearMatchConfig
Source§fn clone(&self) -> NearMatchConfig
fn clone(&self) -> NearMatchConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more