Subtracting arrays of different sizes /u/hirschhalbe Python Education

I’m trying to subtract two arrays elementwise. My arrays are both the result of a FFT of the same signal at different times. I now want to subtract the FFT of the first part from the FFT of the second part (removing base/background noise). My current approach would be to interpolate between the elements of the smaller array to achieve an arrays of the same length, but that seems somewhat unscientific to me. Is there a better way?

submitted by /u/hirschhalbe
[link] [comments]

​r/learnpython I’m trying to subtract two arrays elementwise. My arrays are both the result of a FFT of the same signal at different times. I now want to subtract the FFT of the first part from the FFT of the second part (removing base/background noise). My current approach would be to interpolate between the elements of the smaller array to achieve an arrays of the same length, but that seems somewhat unscientific to me. Is there a better way? submitted by /u/hirschhalbe [link] [comments] 

I’m trying to subtract two arrays elementwise. My arrays are both the result of a FFT of the same signal at different times. I now want to subtract the FFT of the first part from the FFT of the second part (removing base/background noise). My current approach would be to interpolate between the elements of the smaller array to achieve an arrays of the same length, but that seems somewhat unscientific to me. Is there a better way?

submitted by /u/hirschhalbe
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *