From b913e232edd98780961ecfbae836ec77ede49259 Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 1 Dec 2023 11:45:18 -0600 Subject: [PATCH] Fix Label::is_outlier() (#713) --- src/stats/univariate/outliers/tukey.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats/univariate/outliers/tukey.rs b/src/stats/univariate/outliers/tukey.rs index 70713ac57..12ed304bd 100644 --- a/src/stats/univariate/outliers/tukey.rs +++ b/src/stats/univariate/outliers/tukey.rs @@ -239,7 +239,7 @@ impl Label { /// Checks if the data point is labeled as an outlier pub fn is_outlier(&self) -> bool { - matches!(*self, NotAnOutlier) + !matches!(*self, NotAnOutlier) } /// Checks if the data point is labeled as a "severe" outlier