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

Function is

resources/vega.min.js:4350–4361  ·  view source on GitHub ↗
(e, n, r, i)

Source from the content-addressed store, hash-verified

4348 );
4349 }
4350 function is(e, n, r, i) {
4351 if (!e.length) return [void 0, void 0];
4352 const o = Float64Array.from(Ka(e, i)),
4353 a = o.length,
4354 s = n;
4355 let u, l, c, f;
4356 for (c = 0, f = Array(s); c < s; ++c) {
4357 for (u = 0, l = 0; l < a; ++l) u += o[~~(t.random() * a)];
4358 f[c] = u / a;
4359 }
4360 return (f.sort(Qt), [Me(f, r / 2), Me(f, 1 - r / 2)]);
4361 }
4362 function os(t, e, n, r) {
4363 r = r || ((t) => t);
4364 const i = t.length,

Callers 1

vega.min.jsFile · 0.70

Calls 3

KaFunction · 0.70
MeFunction · 0.70
fromMethod · 0.45

Tested by

no test coverage detected