Skip to contents

A step of the RcppExports implementation. Called by morie_dsp_nlms. See the file header for the source the module follows.

Arguments

x

Passed to .Call.

d

Passed to .Call.

order

Passed to .Call.

mu

Passed to .Call.

eps

Passed to .Call.

Value

The value of .Call.

Examples

set.seed(5)
x <- rnorm(200)
d <- stats::filter(x, c(0.5, -0.3), sides = 1); d[is.na(d)] <- 0
w <- morie_dsp_nlms_cpp(x, as.numeric(d), 2L, 0.5, 1e-6)
str(w)
#> List of 2
#>  $ y: num [1:200] 0 0 0 0.577 -0.186 ...
#>  $ e: num [1:200] 0 0 -1.043 -0.165 1.021 ...