Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from skimage.util import view_as_windows
- window_size = 5
- timeseries = np.array([1,2,3,4,5,6,7,8,9,10])
- trajectory_matrix = view_as_windows(timeseries, window_shape=window_size)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement