Skip to contents

Finalize a streaming LOESS model

Usage

finalize(model, ...)

Arguments

model

A StreamingLoess object.

...

Must be empty.

Value

A LoessResult combining all processed chunks.

Examples

x <- seq(0, 10, length.out = 100)
y <- sin(x) + rnorm(100, 0, 0.1)
model <- StreamingLoess(fraction = 0.2, chunk_size = 50L)
invisible(process_chunk(model, x[1:50], y[1:50]))
finalize(model)
#> <LoessResult>
#>   Points:            5 
#>   Fraction Used:     0.2