Add a single point to an online LOESS model
Usage
add_point(model, ...)
# S3 method for class 'OnlineLoess'
add_point(model, x, y, weight = 1, ...)Examples
model <- OnlineLoess(fraction = 0.2, window_capacity = 20L, min_points = 2L)
invisible(add_point(model, 1.0, 0.5))
add_point(model, 2.0, 0.6)
#> $y
#> [1] 0.6
#>
#> $residual
#> [1] 0
#>
#> $robustness_weight
#> [1] 1
#>