MCPcopy Create free account
hub / github.com/arguiot/TheoremJS / regression

Method regression

__test__/theorem.js:260–266  ·  view source on GitHub ↗
(data, deg)

Source from the content-addressed store, hash-verified

258 }
259 }
260 regression(data, deg) {
261 if (deg == 1) {
262 return this.linreg(data)
263 } else {
264 return this.polyreg(data, deg)
265 }
266 }
267 linreg(array) {
268 const x = Object.keys(array)
269 const y = Object.values(array)

Callers 1

test.jsFile · 0.80

Calls 2

linregMethod · 0.95
polyregMethod · 0.95

Tested by

no test coverage detected