MCPcopy Create free account
hub / github.com/alignoth/alignoth / ns

Function ns

resources/vega.min.js:4279–4308  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

4277 return ts(t, [0.25, 0.5, 0.75], e);
4278 }
4279 function ns(t, e) {
4280 const n = t.length,
4281 r = (function (t, e) {
4282 const n = (function (t, e) {
4283 let n,
4284 r = 0,
4285 i = 0,
4286 o = 0;
4287 if (void 0 === e)
4288 for (let e of t)
4289 null != e &&
4290 (e = +e) >= e &&
4291 ((n = e - i), (i += n / ++r), (o += n * (e - i)));
4292 else {
4293 let a = -1;
4294 for (let s of t)
4295 null != (s = e(s, ++a, t)) &&
4296 (s = +s) >= s &&
4297 ((n = s - i), (i += n / ++r), (o += n * (s - i)));
4298 }
4299 if (r > 1) return o / (r - 1);
4300 })(t, e);
4301 return n ? Math.sqrt(n) : n;
4302 })(t, e),
4303 i = es(t, e),
4304 o = (i[2] - i[0]) / 1.34;
4305 return (
4306 1.06 * (Math.min(r, o) || r || Math.abs(i[0]) || 1) * Math.pow(n, -0.2)
4307 );
4308 }
4309 function rs(t) {
4310 const e = t.maxbins || 20,
4311 n = t.base || 10,

Callers 2

bandwidthFunction · 0.70
cEFunction · 0.70

Calls 2

eFunction · 0.85
esFunction · 0.70

Tested by

no test coverage detected