Skip to content

Commit f105a46

Browse files
authored
fix Scott’s rule (#246)
1 parent 2f28f41 commit f105a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/threshold/scott.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import count from "../count.js";
22
import deviation from "../deviation.js";
33

44
export default function thresholdScott(values, min, max) {
5-
return Math.ceil((max - min) / (3.5 * deviation(values) * Math.pow(count(values), -1 / 3)));
5+
return Math.ceil((max - min) / (3.49 * deviation(values) * Math.pow(count(values), -1 / 3)));
66
}

0 commit comments

Comments
 (0)