We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6bc74b commit ebc338cCopy full SHA for ebc338c
1 file changed
crates/geo_filters/src/diff_count/sim_hash.rs
@@ -49,6 +49,11 @@ impl SimHash {
49
}
50
51
impl<C: GeoConfig<Diff>> GeoDiffCount<'_, C> {
52
+ /// TODO document, and maybe get better name
53
+ pub fn min_matches(&self) -> usize {
54
+ SIM_BUCKETS / 2
55
+ }
56
+
57
/// Given the expected size of a diff, this function returns the range of bucket ids which should
58
/// be searched for in order to find geometric filters of the desired similarity. If at least half
59
/// of the buckets in the range match, one found a match that has the expected diff size (or better).
0 commit comments