setMatrix($x); $XT = $X->transpose(); $Y = new Matrix(count($y)); $Y->setMatrix($y); return $XT->mult($X)->inverse()->mult($XT)->mult($Y)->getMatrix(); } /** * {@inheritdoc} */ public static function getVariance() : float { } /** * {@inheritdoc} */ public static function getPredictionInterval() : array { } }