From 5df958f4ec55ca9f5b4f410d453072b1a34a9be5 Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Tue, 27 Oct 2020 14:49:46 -0700 Subject: [PATCH] use _count methods --- src/core/src/sketch/nodegraph.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/src/sketch/nodegraph.rs b/src/core/src/sketch/nodegraph.rs index e2a0a5de91..697ea7fcd7 100644 --- a/src/core/src/sketch/nodegraph.rs +++ b/src/core/src/sketch/nodegraph.rs @@ -316,13 +316,13 @@ impl Nodegraph { .bs .iter() .zip(&other.bs) - .map(|(bs, bs_other)| bs.intersection(bs_other).count()) + .map(|(bs, bs_other)| bs.intersection_count(bs_other)) .sum(); let size: usize = self .bs .iter() .zip(&other.bs) - .map(|(bs, bs_other)| bs.union(bs_other).count()) + .map(|(bs, bs_other)| bs.union_count(bs_other)) .sum(); result as f64 / size as f64 } @@ -332,7 +332,7 @@ impl Nodegraph { .bs .iter() .zip(&other.bs) - .map(|(bs, bs_other)| bs.intersection(bs_other).count()) + .map(|(bs, bs_other)| bs.intersection_count(bs_other)) .sum(); let size: usize = self.bs.iter().map(|bs| bs.len()).sum(); result as f64 / size as f64