MathPHP\Statistics\Regression\Methods\LeastSquares::leverages PHP Метод

leverages() публичный Метод

https://en.wikipedia.org/wiki/Leverage_(statistics) Leverage score for the i-th data unit is defined as: hᵢᵢ = [H]ᵢᵢ which is the i-th diagonal element of the project matrix H, where H = X⟮XᵀX⟯⁻¹Xᵀ where X is the design matrix.
public leverages ( ) : array
Результат array
    public function leverages() : array
    {
        return $this->reg_P->getDiagonalElements();
    }