spleaf.cov.Cov.chi2#

Cov.chi2(y)#

Compute \(\chi^2 = y^T C^{-1} y\) for a given vector of residuals \(y\).

Parameters:
y(n,) ndarray

The vector of residuals \(y\).

Returns:
chi2float

The \(\chi^2\).