Internal function that computes Leave-On-Out (LOO) Error for KRLS given a fixed value for lambda (the parameter that governs the tradeoff between model fit and complexity in KRLS).
This function is called internally by krls to find value of lambda that minimizes the LOO error. It would normally not be called by the user directly.