From 4c4b38398ff893bcbb269b5898e1e3e9fb3fcca3 Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 24 Aug 2023 08:51:24 -0500 Subject: [PATCH] Fix Label::is_outlier() --- 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