least-squares
least-squares copied to clipboard
What is happening in the returned function?
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?