A step of the momento_native implementation. No other function in the package calls it.
See the file header for the source the module follows.
the source it follows.
Usage
momento_harmonise(series_list, patch_len, normalise = TRUE)
Arguments
- series_list
A vector; its length is taken.
- patch_len
Coerced to integer by the body, with as.integer.
- normalise
A flag; the body branches on it. Defaults to TRUE.
Value
A list with batch, meta, n_series, n_patches,
patch_len, note.
Examples
s <- list(sin(1:24), cos(1:10))
h <- momento_harmonise(s, patch_len = 8)
c(h$n_series, h$n_patches)
#> [1] 2 1