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 62e27f4 commit 55b95ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/threshold/scott.js
Expand Up @@ -2,6 +2,6 @@ import count from "../count.js";
import deviation from "../deviation.js";

export default function thresholdScott(values, min, max) {
const d = deviation(values), c = count(values);
const c = count(values), d = deviation(values);
return d && c ? Math.ceil((max - min) * Math.cbrt(c) / (3.49 * d)) : 1;
}

0 comments on commit 55b95ad

Please sign in to comment.