MCPcopy Create free account
hub / github.com/d3/d3-array / thresholdScott

Function thresholdScott

src/threshold/scott.js:4–7  ·  view source on GitHub ↗
(values, min, max)

Source from the content-addressed store, hash-verified

2import deviation from "../deviation.js";
3
4export default function thresholdScott(values, min, max) {
5 const c = count(values), d = deviation(values);
6 return c && d ? Math.ceil((max - min) * Math.cbrt(c) / (3.49 * d)) : 1;
7}

Callers 1

scott-test.jsFile · 0.90

Calls 2

countFunction · 0.85
deviationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…