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

Function Es

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

Source from the content-addressed store, hash-verified

4704 return (null == e && ((e = null == t ? 1 : t), (t = 0)), i.min(t).max(e));
4705 }
4706 function Es(t, e, n) {
4707 let r = 0,
4708 i = 0;
4709 for (const o of t) {
4710 const t = n(o);
4711 null == e(o) || null == t || isNaN(t) || (r += (t - r) / ++i);
4712 }
4713 return { coef: [r], predict: () => r, rSquared: 0 };
4714 }
4715 function Ds(t, e, n, r) {
4716 const i = r - t * t,
4717 o = Math.abs(i) < 1e-24 ? 0 : (n - t * e) / i;

Callers 1

OsFunction · 0.70

Calls 2

eFunction · 0.85
nFunction · 0.70

Tested by

no test coverage detected