movingWindowIndex#
- swordfish.function.movingWindowIndex()#
Return an array vector indicating the indices of the elements of X within each sliding window.
- Parameters:
X (Constant) – A vector.
window (Constant) – An integer no less than 2 indicating the window size.
fixed (Constant) – A Boolean value, indicating whether the length of each row in the output array vector is fixed to be window. The default value is false. When fixed = true, all rows are of the same length. For the first (window - 1) windows, the indices of missing elements are filled with null values.