Skip to content

Commit

Permalink
consistent order
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Mar 20, 2023
1 parent 55b95ad commit 815a7ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/threshold/scott.js
Expand Up @@ -3,5 +3,5 @@ import deviation from "../deviation.js";

export default function thresholdScott(values, min, max) {
const c = count(values), d = deviation(values);
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;
}

0 comments on commit 815a7ac

Please sign in to comment.