stride_array¶
-
astroplan.
stride_array
(arr, window_width)[source]¶ Computes all possible sequential subarrays of arr with length = window_width
Parameters: arr : array-like (length = n)
Linearly-spaced sequence
window_width : int
Number of elements in each new sub-array
Returns: strided_arr : array (shape = (n-window_width, window_width))
Linearly-spaced sequence of times