当前位置:网站首页>Detailed understanding of white noise
Detailed understanding of white noise
2022-06-13 01:40:00 【Under the starry sky 0516】
In data processing , We often encounter noise . General noise is a kind of random signal or random process with constant power spectral density , That is white noise . The origin of white noise is that white light is a mixture of monochromatic light of various frequencies , Because the average power spectrum property of this signal becomes “ white ”, This signal is also known as white noise . The ideal white noise has infinite bandwidth , So its energy is infinite , This is impossible in the real world . actually , People often regard flat signals with limited bandwidth as white noise , To facilitate mathematical analysis . White noise has the following characteristics :
- The mathematical expectation is 0:
μ n = E { n ( t ) } = 0 \mu_n=E\{n(t)\}=0 μn=E{ n(t)}=0
# Code testing :
import numpy as np
noise = np.random.rand(0, 1, 100000)
mean = np.mean(noise)
print(mean)
0.004019681758208514 # Why not 0, That is to say , As long as the bandwidth is enough , Is the ideal white noise .
- The autocorrelation function is Dirac function
r n n = E { n ( t ) n ( t − τ ) } = δ ( τ ) r_{nn} = E\{n(t)n(t-\tau)\}=\delta(\tau) rnn=E{ n(t)n(t−τ)}=δ(τ)
# Code testing
import imageio
import numpy as np
nums = np.arange(10, 100000, 1000)
for num in nums:
noise = np.random.normal(0, 1, num)
corr = np.correlate(noise, noise, mode='full')
plt.plot(corr)
plt.savefig('figs/fig%d.png'%num)
plt.close()
with imageio.get_write('mygif.gif', mode='I') as writer:
for num in nums:
image = imageio.imread('figs/fig%d/png%num)
write.append_data(image)
Image results : Above is Dirac function .
- Power spectral density is flat
import matplotlib.pyplot as plt
noise = np.random.rand(0, 1, 100000)
plt.psd(noise, 1000)
plt.savefig('image.png', dpi=300)
give the result as follows :
边栏推荐
- H5 open the app. If the app is not downloaded, jump to the download page. If the app has been downloaded, wake up the app
- Set and array conversion, list, array
- 【官方文件汇总】国科大学位论文撰写规范
- Introduction to ROS runtime
- 他山之石:a16z 的 Web3 投资版图
- How to solve the problems when using TV focusable to package APK in uni app
- Happy string
- V-inline-date, similar to Ctrip, flying pig, time selection with price
- Simple operation of MySQL database
- Leetcode find duplicates
猜你喜欢
Startup, connection and stop of MySQL service
RSA encryption colloquial explanation
Use koa to mock data and set cross domain issues
Go JWT learning summary
How to print infinite symbol in WPS
Leetcode 05 tree
MySQL performance optimization
Workspace for ROS
Using OpenCV in go
【MathType】利用MathType输出LaTex样式的公式
随机推荐
TensorFlow 2.x 多显卡分布式训练
Redis usage optimization summary learning
QT color extraction
ng-tv-focusable
Uuid/guid introduction, generation rules and generation codes
Stack and queue practice (C language): Demon King's language
Leetcode find duplicates
Leetcode 01 array
Record the VMware installation process of VMware Tools and some problems encountered
A summary of global variables and typedef
Audiences with similar interests
谷歌的智能出价有几种?
Thread code learning notes
Introduction to convolutional neural network
Leetcode question brushing 07 double pointer
Camera model_
受众群体应该选择观察模式还是定位模式?
csdn涨薪技术之Jmeter接口测试数据库断言的实现与设计
【MathType】利用MathType输出LaTex样式的公式
Minimum score of one question per day