aaryapatil / tapify

Multitaper spectrum for time-series analysis
https://tapify.readthedocs.io/
MIT License
12 stars 1 forks source link

Make multitaper a flexible class #4

Closed aaryapatil closed 3 years ago

aaryapatil commented 3 years ago

Currently, multitaper is a function that takes x and t, that is data and time, along with multitaper/periodogram parameters (NW, K, nyquist limit, etc.). It would be nice to convert this to a MultiTaper class with a function periodogram that can have t as on optional argument. If t is not provided, evenly-sampled periodogram will be performed. If t is provided and is uneven, unevenly-sampled periodogram is provided. This way users can perform the evenly sampled case if necessary, and the functionality will be simple .

joshspeagle commented 3 years ago

I like this idea. This would also offer a flexible interface to build additional methods into, and could also be passed to other things in the code if, e.g., you want to provide built-in plotting utilities or other analysis functions.

aaryapatil commented 3 years ago

Created a class and added functionality for evenly-sampled periodogram.