The ridge repair: the Gershgorin ridge of decisions.md [covariance-repair], added to the diagonal of a covariance whose root failed so that the root can be retried.
More...
template<double Relative = 1.0, double Absolute = 0.0>
struct Emrys::roots::Ridge< Relative, Absolute >
The ridge repair: the Gershgorin ridge of decisions.md [covariance-repair], added to the diagonal of a covariance whose root failed so that the root can be retried.
Its margin is Relative times \( \sqrt{\epsilon} \) of the scalar times the larger of the largest diagonal magnitude and the shift that makes the matrix semidefinite, plus Absolute: ridge(), with no absolute floor, repairs a matrix that is indefinite by rounding and leaves a zero block failing, and a positive Absolute repairs that too. Fails with GaussianError::NonFinite on a covariance with NaN or infinity in its lower triangle.
Its report is a RidgeReport of the ridge \( \delta \) added.
- Template Parameters
-
| Relative | the margin in units of \( \sqrt{\epsilon} \) of the scale, at least zero |
| Absolute | the floor added to the margin, at least zero |
- See also
- ridge()