@razorpay/blade
Version:
The Design System that powers Razorpay
11 lines (8 loc) • 318 B
JavaScript
import count from '../count.js';
import deviation from '../deviation.js';
function thresholdScott(values, min, max) {
const c = count(values), d = deviation(values);
return c && d ? Math.ceil((max - min) * Math.cbrt(c) / (3.49 * d)) : 1;
}
export { thresholdScott as default };
//# sourceMappingURL=scott.js.map