文件名称:55645
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.52kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
10种软件滤波方法的示例程序
1、限副滤波
/* A值可根据实际情况调整
value为有效值,new_value为当前采样值
滤波程序返回有效的实际值 */
#define A 10
char value
char filter()
{
char new_value
new_value = get_ad()
if ( ( new_value - value > A ) || ( value - new_value > A )
return value
return new_value
}
2、中位值滤波法
/* N值可根据实际情况调整
排序采用冒泡法*/-10 kinds of software filtering method one example of the procedure, limit the Deputy filter/* A value can be adjusted according to the actual value for the RMS, new_value filter for the current sampling procedures for the effective return of the actual value* /# define A 10 char value char filter () (char new_value new_value = get_ad () if ((new_value- value> A) | | (value- new_value> A) return value return new_value ) 2, the median filtering method/* N values can be adjust the actual situation in the use of bubble sort method* /
1、限副滤波
/* A值可根据实际情况调整
value为有效值,new_value为当前采样值
滤波程序返回有效的实际值 */
#define A 10
char value
char filter()
{
char new_value
new_value = get_ad()
if ( ( new_value - value > A ) || ( value - new_value > A )
return value
return new_value
}
2、中位值滤波法
/* N值可根据实际情况调整
排序采用冒泡法*/-10 kinds of software filtering method one example of the procedure, limit the Deputy filter/* A value can be adjusted according to the actual value for the RMS, new_value filter for the current sampling procedures for the effective return of the actual value* /# define A 10 char value char filter () (char new_value new_value = get_ad () if ((new_value- value> A) | | (value- new_value> A) return value return new_value ) 2, the median filtering method/* N values can be adjust the actual situation in the use of bubble sort method* /
相关搜索: 软件滤波方法
(系统自动生成,下载前可以参看下载内容)
下载文件列表
55645.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.