This functions estimate the noise in the data.
Usage
noise(x, y, method = c("MAD", "SuperSmoother"), ...)
See also
Other noise estimation and smoothing functions:
smooth()
Examples
x <- 1:20
y <- c(1:10, 10:1)
noise(x, y)
#> [1] 3.7065 3.7065 3.7065 3.7065 3.7065 3.7065 3.7065 3.7065 3.7065 3.7065
#> [11] 3.7065 3.7065 3.7065 3.7065 3.7065 3.7065 3.7065 3.7065 3.7065 3.7065
noise(x, y, method = "SuperSmoother", span = 1 / 3)
#> [1] 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 7.000000 7.857143
#> [9] 8.428571 8.714286 8.714286 8.428571 7.857143 7.000000 6.000000 5.000000
#> [17] 4.000000 3.000000 2.000000 1.000000