Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
96 views
in Technique[技术] by (71.8m points)

python - How to deconvolve two signals?

I don't understand why signal.deconvolve is not giving me my original data.

from scipy import signal

Filtered = signal.convolve(data,thefilter)
originaldf,remainder = signal.deconvolve(Filtered,thefilter)

When I plot deconvolved variable (originaldf), I get this error:

index 0 is out of bounds for axis 0 with size 0

Size of my data is 1000, size of filter is 273, so filter is shorter than data, so I'm not sure what's wrong. Also, looking at the question posted here: Understanding scipy deconvolve it seems they are not able to retrieve their original signal because deconvolve changes the length of the signal by shortening it. Would I have to do that too to get the original signal back?

Any help would be appreciated. Thanks.

question from:https://stackoverflow.com/questions/65946278/how-to-deconvolve-two-signals

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...