edeno / Jadhav-2016-Data-Analysis

Code for analysis on data from Jadhav et al. 2016
GNU General Public License v3.0
2 stars 5 forks source link

Memoize spectral functions? #57

Closed edeno closed 7 years ago

edeno commented 7 years ago

Memoization makes functions more efficient by caching previously computed results. Because we compute the multitaper fft for the same LFPs multiple times and we compute with the same parameters, memoization could speed up our functions. See http://mike.place/2016/memoization/ and https://docs.python.org/3/library/functools.html#functools.lru_cache