【卡尔曼滤波器-Python】The g-h filter white white noise(白噪声)
2016-02-03 14:27
756 查看
用G-H滤波器减少白噪声
用G-H滤波器减少白噪声白噪声的模拟
不同初值对滤波结果影响
白噪声的模拟
这里采用numpy.random.randn()函数随机生成期望为0的有限变量,生成的过程即在原始数据上加上随机生成的噪声,定义如下的函数from numpy.random import randn def gen_data(x0,dx,count,noise_factor): return [x0+dx*i+randn()*noise_factor for i in range(count)] mensurements=gen_data(5,2,100,10)
不同初值对滤波结果影响
采用上一篇博文中的G-H filter1进行滤波处理,并设定不同的初值得到的滤波效果data=g_h_filter(data=mensurements, x0=5., dx=2., dt=1., g=0.2, h=0.01);
data=g_h_filter(data=mensurements, x0=100, dx=2., dt=1., g=0.2, h=0.01);
/article/10750178.html ↩
相关文章推荐
- python 笔记 寻找数列的规则
- python的输入参数
- [leetcode]@python 85. Maximal Rectangle
- [leetcode]@python 84. Largest Rectangle in Histogram
- Fatal error in launcher
- [leetcode]@python 83. Remove Duplicates from Sorted List
- python 笔记 break
- python 笔记 break
- Python 连接 Mysql 操作异常
- Python第四讲类、对象和函数
- Python 程序员都会喜欢的6个程序库
- Python实现浏览器自动化操作
- python 正则表达式处理不规范json
- python开发环境搭建
- 【python】如何在类方法前添加装饰器
- Python:os.path路径操作
- python调用java 登陆weblogic
- python 笔记 装饰器
- python 笔记 装饰器
- windows下面安装Python和pip终极教程