I want to apply a given function (in particular, the np.std()) to an array of measurements, and I'd like to apply it on a rolling window of a given size.
But - since the measurements are intended to be in a circular array - I also need the rolling window to be able to overlap from the array end to its beginning.
Therefore, I'm unable to use the answer in Rolling window for 1D arrays in Numpy? ... I tried to modify its approach, but I'm not a numpy expert and I was unable to understand what np.lib.stride_tricks.as_strided does (where is its documentation???)