基于python的小波变换应用初探

python的小波变换库官网

https://pywavelets.readthedocs.io/en/latest/?badge=latest

 

vscode安装小波变换库

 & "C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/python.exe" -m pip install --upgrade pip --user

& "C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/python.exe" -m pip install -U PyWavelets --user

& "C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python36_64/python.exe" -m pip install -U matplotlib  --user

基于python的小波变换应用初探

 

运用小波变换库

 

问题导入

这个是一个受到一定随机破坏的正弦波,有啥方法能复原周期?

npy数据读入

基于python的小波变换应用初探

连续小波(cwt)

基于python的小波变换应用初探

平稳小波变换(SWT)

基于python的小波变换应用初探

离散小波变换(DWT)

基于python的小波变换应用初探

 

具体实验待完成...

 

Tips:

size的结果为数字

基于python的小波变换应用初探

 

shape的结果为元组

基于python的小波变换应用初探

参考资料:

基于python的小波变换应用初探

https://blog.****.net/renxingzhadan/article/details/53524737