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

Function Cs

resources/vega.min.js:4720–4744  ·  view source on GitHub ↗
(t, e, n, r)

Source from the content-addressed store, hash-verified

4718 return [e - o * t, o];
4719 }
4720 function Cs(t, e, n, r) {
4721 ((t = t.filter((t) => {
4722 let r = e(t),
4723 i = n(t);
4724 return null != r && (r = +r) >= r && null != i && (i = +i) >= i;
4725 })),
4726 r && t.sort((t, n) => e(t) - e(n)));
4727 const i = t.length,
4728 o = new Float64Array(i),
4729 a = new Float64Array(i);
4730 let s,
4731 u,
4732 l,
4733 c = 0,
4734 f = 0,
4735 h = 0;
4736 for (l of t)
4737 ((o[c] = s = +e(l)),
4738 (a[c] = u = +n(l)),
4739 ++c,
4740 (f += (s - f) / c),
4741 (h += (u - h) / c));
4742 for (c = 0; c < i; ++c) ((o[c] -= f), (a[c] -= h));
4743 return [o, a, f, h];
4744 }
4745 function Fs(t, e, n, r) {
4746 let i,
4747 o,

Callers 4

BsFunction · 0.85
NsFunction · 0.85
OsFunction · 0.85
LsFunction · 0.85

Calls 2

eFunction · 0.85
nFunction · 0.70

Tested by

no test coverage detected