src/Statistics/Regression/WeightedLinear.php
public function calculate()
    {
        $this->parameters = $this->leastSquares($this->ys, $this->xs, $this->ws)->getColumn(0);
    }
public function calculate()
    {
        $this->parameters = $this->leastSquares($this->ys, $this->xs, $this->ws)->getColumn(0);
    }
public function calculate ( ) { $ this -> parameters = $ this -> leastSquares ( $ this -> ys , $ this -> xs , $ this -> ws ) -> getColumn ( 0 ) ; }
Calculates the regression parameters.

@throws Exception\MatrixException
Calculates the regression parameters .