MCPcopy Index your code
hub / github.com/microsoft/SandDance / predict

Function predict

docs/app/js/sanddance-app.js:119688–119688  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

119686 X2 += (dx * dx - X2) / n;
119687 });
119688 const coef = ols(X, Y, XY, X2), predict = (x)=>coef[0] + coef[1] * x;
119689 return {
119690 coef: coef,
119691 predict: predict,

Callers 2

someFunction · 0.70
rSquaredFunction · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected