hatMatrix

abstract val hatMatrix: Array<DoubleArray>

The hat matrix is defined in terms of the design matrix X by $X(X^{T}X)^{-1}X^{T}$