File size: 160 Bytes
bc20498 |
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);
}
|
bc20498 |
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);
}
|