c211499
1
2
3
4
5
6
import count from "../count.js"; export default function thresholdSturges(values) { return Math.max(1, Math.ceil(Math.log(count(values)) / Math.LN2) + 1); }