powered by
Auxiliary function to generate a two-column matrix of windows to be used in the function 'fullscan'.
makeWindows(len, size, offset)
The overall length of the data which is to be scanned in windows.
The window size.
The offset of the generated windows (e.g., if offset=1 then sliding window, if offset=size then blocks).
offset=1
offset=size
A two-column matrix of sliding windows, with one window per row defined through start and end value.
# NOT RUN { require(locStra) print(makeWindows(100,10,5)) # }
Run the code above in your browser using DataLab