From 99856ce95608101553ee11402ea6e81822c61e53 Mon Sep 17 00:00:00 2001 From: Andy Eschbacher Date: Thu, 29 Sep 2016 11:37:22 -0400 Subject: [PATCH] flip inequality --- src/pg/sql/18_outliers.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pg/sql/18_outliers.sql b/src/pg/sql/18_outliers.sql index 454e383..b726bf6 100644 --- a/src/pg/sql/18_outliers.sql +++ b/src/pg/sql/18_outliers.sql @@ -30,7 +30,7 @@ BEGIN END IF; SELECT array_agg( - outlier_fraction > i / avg_val) INTO out_vals + outlier_fraction < i / avg_val) INTO out_vals FROM unnest(column_values) As x(i); RETURN QUERY