Open danweflen opened 10 years ago
IMO this could be a valuable addition. That being said, the highest chance of these being added is you submitting a PR :-).
While I don't have P and Q distributions, I've written what I consider to be a pretty good Wigner distribution function. I have a few questions before submitting a PR though, since I've never done it before:
Thanks for the encouragement earlier!
scipy.fftpack
, no problem. It's already used in several places in the signal
module.signal/spectral.py
? You can add it there if the function is not too long. And tests in the corresponding signal/tests/test_spectral.py
no follow-up in 5 years, we close enhancement request after that time. PR still welcome, but not urgent from our perspective
there is active discussion in gh-14141 about this
Just for reference:
I'd like to request that
scipy.signal
include functions to calculate the Wigner, Glauber–Sudarshan P, and Husimi Q distributions. I've seen a few packages online that calculate specific transforms, but the only unified library I've found that includes these transformations in a unified, coherent way is the Time-Frequency Toolbox for matlab and octave.