Recursive least-squares with forgetting factor lam and initial
inverse-correlation P0 = delta * I. Faster convergence than LMS
at the cost of O(order^2) per sample.
Examples
if (requireNamespace("ranger", quietly = TRUE)) {
set.seed(1L)
x <- rnorm(1000)
d <- x + 0.01 * rnorm(1000)
out <- morie_dsp_rls(x, d, order = 8L, lam = 0.99)
mean(out$e[200:400]^2)
}
#> [1] 1.070665
