MCPcopy Create free account
hub / github.com/microsoft/SandDance / predict

Function predict

docs/tests/v2/es6/js/sanddance.js:87642–87642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87640
87641 const coef = (0, _ols.default)(X / n, Y / n, XY / n, X2 / n),
87642 predict = x => coef[0] + coef[1] * x;
87643
87644 return {
87645 coef: coef,

Callers 2

someFunction · 0.70
_defaultFunction · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected