voytekresearch / pacpy

Calculate phase-amplitude coupling in Python (and Matlab).
MIT License
24 stars 12 forks source link

Adding checks for proper # samples in PAC #48

Open choldgraf opened 8 years ago

choldgraf commented 8 years ago

Some of the PAC functions require more / less timepoints in order to achieve a stable estimate. Perhaps it's worth adding a check for any given PAC function to make sure that users are doing something sensible with their estimation. E.g., "given the size of input data and the sampling rate of the data, raise a warning if we are below some threshold for n_timepoints". Thoughts?