From f105a46c2c1115d1465069b0a4dada9a60c59bbd Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Fri, 1 Apr 2022 08:11:25 -0700 Subject: [PATCH] =?UTF-8?q?fix=20Scott=E2=80=99s=20rule=20(#246)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/threshold/scott.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/threshold/scott.js b/src/threshold/scott.js index 27044f85..86a02740 100644 --- a/src/threshold/scott.js +++ b/src/threshold/scott.js @@ -2,5 +2,5 @@ import count from "../count.js"; import deviation from "../deviation.js"; export default function thresholdScott(values, min, max) { - return Math.ceil((max - min) / (3.5 * deviation(values) * Math.pow(count(values), -1 / 3))); + return Math.ceil((max - min) / (3.49 * deviation(values) * Math.pow(count(values), -1 / 3))); }