Python Forum
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convolution with numpy
#1
Hello everyone, 

I am trying to convolute 2 signals in the time-domain:

the first when is a gaussien function and the second one is a zero array but has an impulse at x1 and an increasing ramp between x2 and x3. Both peaks of the impulse and the increasing ramp have maximum 1. 

when I try to convolute both with 
 np.convolve(gaussian, signal, 'same')
 I only get a non-zero signal for the increasing ramp. Python seams to ignore the convolution with the impulse. but when I set the ramp to zero and redo the convolution python convolves with the impulse and I get the result. 

So separately, means : Convolution with impulse --> works
                                 Convolution with increasing ramp till 1 --> works
                                 Convolution with a signal containing both  : Impulse AND ramp --> does not work, shows just result of convolution with ramp.

Can anyone help?
Thank you in advance
Reply


Messages In This Thread
Convolution with numpy - by Tina - Mar-06-2017, 12:24 PM
RE: Convolution with numpy - by sparkz_alot - Mar-06-2017, 02:25 PM
RE: Convolution with numpy - by zivoni - Mar-06-2017, 03:38 PM
RE: Convolution with numpy - by Tina - Mar-07-2017, 03:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] How to store different data type in one numpy array? water 7 632 Mar-26-2024, 02:18 PM
Last Post: snippsat
  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'" kalle 2 2,642 Jul-19-2022, 06:31 AM
Last Post: paul18fr
  Convolution "same" in Python doesn't work as Matlab claw91 4 3,775 Oct-01-2020, 08:59 AM
Last Post: claw91
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 3,008 Apr-09-2019, 04:54 PM
Last Post: PhysChem
  Numpy or Scipy Variance Convolution TimWebPhoenix 0 3,359 Jul-11-2017, 12:41 PM
Last Post: TimWebPhoenix

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020