public function calculate() { $this->parameters = $this->leastSquares($this->ys, $this->xs, $this->ws)->getColumn(0); }