Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. from skimage.util import view_as_windows
  2.  
  3. window_size = 5
  4. timeseries = np.array([1,2,3,4,5,6,7,8,9,10])
  5.  
  6. trajectory_matrix = view_as_windows(timeseries, window_shape=window_size)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement