python Programming Glossary: signal2
Convolution computations in Numpy/Scipy http://stackoverflow.com/questions/6855169/convolution-computations-in-numpy-scipy did this np is numpy sp is scipy def mix1 signal1 signal2 spec1 np.fft.fft signal1 axis 1 spec2 np.fft.fft signal2 axis.. signal2 spec1 np.fft.fft signal1 axis 1 spec2 np.fft.fft signal2 axis 1 return np.fft.ifft spec1 spec2 axis 1 Both signals have.. convolution so I tried to replace it with def mix2 signal1 signal2 outputs np.empty_like signal1 for idx row in enumerate outputs..
|