4.2. Scaling and Wavelet Functions

from jax.config import config
config.update("jax_enable_x64", True)
import matplotlib.pyplot as plt
%matplotlib inline
import cr.sparse.wt as wt
wavelet = wt.build_wavelet('db4')
# scaling and wavelet functions
phi, psi, x = wavelet.wavefun()

4.2.1. Scaling function

plt.plot(x, phi)
[<matplotlib.lines.Line2D at 0x7f2e181f1dc0>]
../../../../_images/wavelet_scaling_functions_7_1.png

4.2.2. Wavelet function

plt.plot(x, psi)
[<matplotlib.lines.Line2D at 0x7f2e18227400>]
../../../../_images/wavelet_scaling_functions_9_1.png