当前位置:网站首页>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 :
边栏推荐
- Using OpenCV in go
- Thread code learning notes
- 路径字段是什么? ——竞价广告
- [learn FPGA programming from scratch -21]: Advanced - Architecture - VerilogHDL coding specification
- Docker install MySQL
- My crawler learning notes
- Note: common gadgets in project architecture
- pytorch : srcIndex < srcSelectDimSize
- About inquirerjs
- Stack stack LIFO
猜你喜欢

Sonarqube local installation
![[Stanford Jiwang cs144 project] lab1: streamreassembler](/img/7b/fad18b68a6ee30d1dec4dad6273b98.png)
[Stanford Jiwang cs144 project] lab1: streamreassembler

Camera model_

Happy string

六、出库管理功能的实现

Should the audience choose observation mode or positioning mode?

Set and array conversion, list, array

【斯坦福計網CS144項目】Lab1: StreamReassembler

September 3, 2021 visual notes

TensorFlow2的Conv1D, Conv2D,Conv3D机器对应的MaxPooling详解
随机推荐
Create a simple game interface using pyGame
Summary of various installation methods of Lab View
[WSL2]WSL2迁移虚拟磁盘文件ext4.vhdx
[leetcode] valid phone number Bash
Leetcode 01 array
六、出库管理功能的实现
使用Pygame创建一个简单游戏界面
Implementation and design of JMeter interface test database assertion for CSDN salary increase technology
V-inline-date, similar to Ctrip, flying pig, time selection with price
Sonarqube local installation
Happy string
About constructive code blocks, static code blocks, and constructor execution order
Introduction to common ROS commands
Introduction to common activation functions
Wsl2 + vcxsrv + opengl3.3 configuration
On February 26, 2022, the latest news of national oil price adjustment today
Leetcode question 20
水管工游戏
Uuid/guid introduction, generation rules and generation codes
Detailed explanation of Joseph problem