baccuslab / pyret

Python tools for analysis of neurophysiology data
https://pyret.readthedocs.io/en/master/
MIT License
35 stars 8 forks source link

rolling_window #52

Closed nirum closed 9 years ago

nirum commented 9 years ago

Add a rolling_window function that takes an array and returns a view on the same array (no copying of data) such that the new view is made up of shifted copies of the original array.

This is useful for turning convolution with a filter into a dot product with the filter, without requiring any more space on disk.