Real-time STOMP algorithm
stompi_update(.mp, new_data, history_size = FALSE)
.mp | a TSMP object of class |
---|---|
new_data | new data to append to original data. |
history_size | an |
Returns the input .mp
updated with the new information.
mp <- tsmp(mp_toy_data$data[1:200, 1], window_size = 30, verbose = 0) mpi <- stompi_update(mp, mp_toy_data$data[201:300, 1]) mp <- tsmp(mp_toy_data$data[1:300, 1], window_size = 30, verbose = 0) all.equal(mp, mpi, check.attributes = FALSE)#> [1] TRUE