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

Function Ts

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

Source from the content-addressed store, hash-verified

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,
4790 o = 0,
4791 a = 0,
4792 s = 0;
4793 Fs(t, e, n, (t, e) => {
4794 (++s,
4795 (t = Math.log(t)),
4796 (r += (t - r) / s),
4797 (i += (e - i) / s),
4798 (o += (t * e - o) / s),
4799 (a += (t * t - a) / s));
4800 });
4801 const u = Ds(r, i, o, a),
4802 l = (t) => u[0] + u[1] * Math.log(t);
4803 return { coef: u, predict: l, rSquared: Ss(t, e, n, i, l) };
4804 }
4805 function Bs(t, e, n) {
4806 const [r, i, o, a] = Cs(t, e, n);
4807 let s,

Callers

nothing calls this directly

Calls 3

FsFunction · 0.85
DsFunction · 0.85
SsFunction · 0.85

Tested by

no test coverage detected