We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55b95ad commit 815a7acCopy full SHA for 815a7ac
src/threshold/scott.js
@@ -3,5 +3,5 @@ import deviation from "../deviation.js";
3
4
export default function thresholdScott(values, min, max) {
5
const c = count(values), d = deviation(values);
6
- return d && c ? Math.ceil((max - min) * Math.cbrt(c) / (3.49 * d)) : 1;
+ return c && d ? Math.ceil((max - min) * Math.cbrt(c) / (3.49 * d)) : 1;
7
}
0 commit comments