Skip to content

This is an adaptation of the fieldtrip preprocessing function ft_preproc_dftfilter into python

License

Notifications You must be signed in to change notification settings

Lubell/python_dftfilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python_dftfilter

This is an adaptation of the fieldtrip preprocessing function ft_preproc_dftfilter into python

Credit to: Copyright (C) 2003, Pascal Fries Copyright (C) 2003-2015, Robert Oostenveld Copyright (C) 2016, Sabine Leske

Currently both the dft filter and the spectrum interpolation are working. The dft filter is quite slow and should be optimized.

Plot showing the difference betweem outputs when using np.fft.irfft and np.fft.ifft when they are compared to the matlab output.

plot compare

The dft filter results are almost exactly the same as the matlab code's, the only difference is precision, when rounded to 4 places (only precision I looked at) the results were identical.

About

This is an adaptation of the fieldtrip preprocessing function ft_preproc_dftfilter into python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages