Skip to content

Morlet wavelets have high frequency noise #64

@mgarrett1955

Description

@mgarrett1955

I am seeing un unexpected results from the Morlet CWT, mainly high frequency noise in the scaled basis functions:

import numpy as np
import matplotlib.pyplot as plt
import pywt
widths = np.arange(1, 127)
fs = 250
t = 4.0
t = np.zeros(int(fs * t))
t[256] = 1
widths = np.arange(1, 32)
cwt_matrix1, freq = pywt.cwt(t, widths, 'morl', sampling_period=1/fs)
plt.figure(figsize=(15, 5))
plt.plot(cwt_matrix1[24])
plt.show()

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions