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

Function Rs

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

Source from the content-addressed store, hash-verified

4932 return { coef: Rs(f, y, -a, s), predict: v, rSquared: Ss(t, e, n, s, v) };
4933 }
4934 function Rs(t, e, n, r) {
4935 const i = Array(t);
4936 let o, a, s, u;
4937 for (o = 0; o < t; ++o) i[o] = 0;
4938 for (o = t - 1; o >= 0; --o)
4939 for (s = e[o], u = 1, i[o] += s, a = 1; a <= o; ++a)
4940 ((u *= (o + 1 - a) / a), (i[o - a] += s * Math.pow(n, a) * u));
4941 return ((i[0] += r), i);
4942 }
4943 function Ls(t, e, n, r) {
4944 const [i, o, a, s] = Cs(t, e, n, !0),
4945 u = i.length,

Callers 1

OsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected