MCPcopy Create free account
hub / github.com/alignoth/alignoth / $s

Function $s

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

Source from the content-addressed store, hash-verified

4768 );
4769 }
4770 function $s(t, e, n) {
4771 let r = 0,
4772 i = 0,
4773 o = 0,
4774 a = 0,
4775 s = 0;
4776 Fs(t, e, n, (t, e) => {
4777 (++s,
4778 (r += (t - r) / s),
4779 (i += (e - i) / s),
4780 (o += (t * e - o) / s),
4781 (a += (t * t - a) / s));
4782 });
4783 const u = Ds(r, i, o, a),
4784 l = (t) => u[0] + u[1] * t;
4785 return { coef: u, predict: l, rSquared: Ss(t, e, n, i, l) };
4786 }
4787 function Ts(t, e, n) {
4788 let r = 0,
4789 i = 0,

Callers 1

OsFunction · 0.85

Calls 3

FsFunction · 0.85
DsFunction · 0.85
SsFunction · 0.85

Tested by

no test coverage detected