least-squares icon indicating copy to clipboard operation
least-squares copied to clipboard

What is happening in the returned function?

Open michaelslevy opened this issue 4 years ago • 0 comments

var ret = {}
var f = LeastSquares(this.x, this.y, ret);

console.dir(ret); //{ m: 1.4, b: 3.5 }
console.log(f(3.6)); //8.54

In the last line of this code, is the last line taking X and returning Y?

michaelslevy avatar Nov 07 '20 01:11 michaelslevy