A Ricker wavelet is a wave-like oscillation with an amplitude that begins at 0, increases, and then decreases back to 0. A Ricker wavelet, also known as the “Mexican hat wavelet”.
In this article, we will plot the ricker curve that makes them useful for signal processing. It is the negative normalized second derivative of a Gaussian function.
Syntax: scipy.signal.ricker(points, a)
- points: A number of points in vector. Will be centered around 0.
- a: Width parameter of the wavelet.
Returns: An array of length points in the shape of a ricker curve.
- Import required modules.
- Create an array to plot the shape of a ricker curve.
- Move an axis at the center.
- Show Graph.
Example 1: Plotting Ricker curve.
Example 2: Plotting Inverse Ricker curve.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.