ktongue's picture
download
raw
303 Bytes
import count from "../count.js";
import quantile from "../quantile.js";
export default function thresholdFreedmanDiaconis(values, min, max) {
const c = count(values), d = quantile(values, 0.75) - quantile(values, 0.25);
return c && d ? Math.ceil((max - min) / (2 * d * Math.pow(c, -1 / 3))) : 1;
}

Xet Storage Details

Size:
303 Bytes
·
Xet hash:
4c8d13facd4c4835107a2dcae95ab2c7e38db5fd71eb25789191bc47d332a360

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.