在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → Think DSP python.pdf

Think DSP python.pdf

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:4.03M
  • 下载次数:7
  • 浏览次数:303
  • 发布时间:2020-06-08
  • 实例类别:一般编程问题
  • 发 布 人:robot666
  • 文件格式:.pdf
  • 所需积分:2
 相关标签:

实例介绍

【实例简介】
用python学习数字信号处理 digital signal processing
【实例截图】

【核心代码】

Contents
Preface v
0.1 Who is this book for? . . . . . . . . . . . . . . . . . . . . . . . v
0.2 Using the code . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
1 Sounds and signals 1
1.1 Periodic signals . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Spectral decomposition . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.4 Reading and writing Waves . . . . . . . . . . . . . . . . . . . 7
1.5 Spectrums . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.6 Wave objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.7 Signal objects . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.8 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2 Harmonics 13
2.1 Triangle waves . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.2 Square waves . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.3 Aliasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.4 Computing the spectrum . . . . . . . . . . . . . . . . . . . . . 19
2.5 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
x Contents
3 Non-periodic signals 23
3.1 Linear chirp . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.2 Exponential chirp . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.3 Spectrum of a chirp . . . . . . . . . . . . . . . . . . . . . . . . 27
3.4 Spectrogram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.5 The Gabor limit . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.6 Leakage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.7 Windowing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.8 Implementing spectrograms . . . . . . . . . . . . . . . . . . . 32
3.9 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
4 Noise 37
4.1 Uncorrelated noise . . . . . . . . . . . . . . . . . . . . . . . . 37
4.2 Integrated spectrum . . . . . . . . . . . . . . . . . . . . . . . . 40
4.3 Brownian noise . . . . . . . . . . . . . . . . . . . . . . . . . . 41
4.4 Pink Noise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4.5 Gaussian noise . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
5 Autocorrelation 51
5.1 Correlation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
5.2 Serial correlation . . . . . . . . . . . . . . . . . . . . . . . . . 54
5.3 Autocorrelation . . . . . . . . . . . . . . . . . . . . . . . . . . 55
5.4 Autocorrelation of periodic signals . . . . . . . . . . . . . . . 56
5.5 Correlation as dot product . . . . . . . . . . . . . . . . . . . . 60
5.6 Using NumPy . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
5.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Contents xi
6 Discrete cosine transform 63
6.1 Synthesis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
6.2 Synthesis with arrays . . . . . . . . . . . . . . . . . . . . . . . 64
6.3 Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
6.4 Orthogonal matrices . . . . . . . . . . . . . . . . . . . . . . . 67
6.5 DCT-IV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
6.6 Inverse DCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
6.7 The Dct class . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
6.8 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
7 Discrete Fourier Transform 75
7.1 Complex exponentials . . . . . . . . . . . . . . . . . . . . . . 76
7.2 Complex signals . . . . . . . . . . . . . . . . . . . . . . . . . . 78
7.3 The synthesis problem . . . . . . . . . . . . . . . . . . . . . . 79
7.4 Synthesis with matrices . . . . . . . . . . . . . . . . . . . . . . 80
7.5 The analysis problem . . . . . . . . . . . . . . . . . . . . . . . 82
7.6 Efficient analysis . . . . . . . . . . . . . . . . . . . . . . . . . . 83
7.7 DFT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
7.8 The DFT is periodic . . . . . . . . . . . . . . . . . . . . . . . . 85
7.9 DFT of real signals . . . . . . . . . . . . . . . . . . . . . . . . 87
7.10 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
8 Filtering and Convolution 91
8.1 Smoothing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
8.2 Convolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
8.3 The frequency domain . . . . . . . . . . . . . . . . . . . . . . 95
8.4 The Convolution Theorem . . . . . . . . . . . . . . . . . . . . 97
xii Contents
8.5 Gaussian filter . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
8.6 Efficient convolution . . . . . . . . . . . . . . . . . . . . . . . 100
8.7 Efficient autocorrelation . . . . . . . . . . . . . . . . . . . . . 101
8.8 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
9 Differentiation and Integration 105
9.1 Finite differences . . . . . . . . . . . . . . . . . . . . . . . . . 105
9.2 The frequency domain . . . . . . . . . . . . . . . . . . . . . . 107
9.3 Differentiation . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
9.4 Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
9.5 Cumulative sum . . . . . . . . . . . . . . . . . . . . . . . . . . 113
9.6 Integrating noise . . . . . . . . . . . . . . . . . . . . . . . . . 115
9.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
10 LTI systems 119
10.1 Signals and systems . . . . . . . . . . . . . . . . . . . . . . . . 119
10.2 Windows and filters . . . . . . . . . . . . . . . . . . . . . . . . 121
10.3 Acoustic response . . . . . . . . . . . . . . . . . . . . . . . . . 123
10.4 Systems and convolution . . . . . . . . . . . . . . . . . . . . . 125
10.5 Proof of the Convolution Theorem . . . . . . . . . . . . . . . 128
10.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
11 Modulation and sampling 133
11.1 Convolution with impulses . . . . . . . . . . . . . . . . . . . 133
11.2 Amplitude modulation . . . . . . . . . . . . . . . . . . . . . . 136
11.3 Sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.4 Aliasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
11.5 Interpolation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
11.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
11.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146

标签:

实例下载地址

Think DSP python.pdf

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警