/tapify

Multitaper spectrum for time-series analysis

Primary LanguagePythonMIT LicenseMIT

tapify

Logo

Build Status License Docs

A Multitaper Periodogram package for computing the power spectrum of a time-series with minimal spectral leakage and reduced variance.

Documentation

Read the documentation at tapify.readthedocs.io

The following is a basic use case to get you started:

from tapify import MultiTaper

mt_object = MultiTaper(data, t=time, NW=4, K=7)
freq, power = mt_object.periodogram(method='fft',
                                    adaptive_weighting=True,
                                    N_padded='default')

Installation

pip install tapify

python setup.py install

Attribution

Please cite Patil, Eadie, Speagle, Thomson (2022) https://arxiv.org/abs/2209.15027 if you use this code in your research.