Skip to content

Power Spectral Density (PSD) of a signal containing NaN values by using the Welch algorithm

License

Notifications You must be signed in to change notification settings

D-Raus/nanWelch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The nanWelch module allows to compute the Power Spectral Density (PSD) of a signal containing NaN values, by using the Welch algorithm. The windows containing NaN values are simply not used when computing the averaged spectra.

Example

The example nanWelch_example is based on the one provided in the scipy.signal.welch documentation (https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.welch.html). Few NaN values are added to the input signal, the scipy.signal.welch module thus produces a PSD filled with NaN while the nanWelch module still allows to compute the PSD.

example_signals

result_nanWelch

About

Power Spectral Density (PSD) of a signal containing NaN values by using the Welch algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages