buzsakilab / buzcode

Code for internal lab sharing - polishing has started but is by no means complete
http://www.buzsakilab.com/
GNU General Public License v3.0
119 stars 128 forks source link

Interval Utilities #100

Open dlevenstein opened 7 years ago

dlevenstein commented 7 years ago

There are a suite of interval utilities, i.e. InIntervals, FindInIntervals, RestrictInts, which have somewhat overlapping functionality.

1) A census/guide should be created of these functions and any that can be merged (maintaining all functionality) should be merged

2) Calls to these functions within buzcode will need to be updated to reflect any mergers.

dlevenstein commented 6 years ago

The final merged function should have the option to take a structure: x.data x.timestamps x.????

and return the selection of data from the intervals in the form: x.data x.timestamps x.???

as well as the existing functionality

brendonw1 commented 6 years ago

I just tried loading intervals using bs_GetLFP.m. It gives a 1 x nIntervals lfp struct. I might have done it differently. Do we like it that way? How do we handle multiple intervals in general?