⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 一些常用的软件滤波方法_jj.htm

📁 从网上收集的多个软件滤波算法文章,大概有10种.
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0038)http://www.zmmcu.com/showart.asp?id=72 -->
<HTML><HEAD><TITLE>青青子木电子世界--> 一些常用的软件滤波方法</TITLE>
<SCRIPT>
function copyit(obj){
	obj.select();
	js=obj.createTextRange();
	js.execCommand("Copy");
}
function saveAs(obj){
	var winname=window.open('','test','top=10000');
	winname.document.open("text/html", "replace");
	winname.document.write(obj.value);
	winname.document.execCommand('saveas','','code.html');
	winname.close();
}
function runit(obj)
{
var winname=window.open("","test","");
winname.document.open("text/html", "replace");
winname.document.write(obj.value);
winname.document.close();
}
</SCRIPT>
<LINK href="一些常用的软件滤波方法_jj.files/blue.css" type=text/css rel=stylesheet>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT language=javaScript src="一些常用的软件滤波方法_jj.files/js.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=JavaScript src=""></SCRIPT>

<STYLE type=text/css>.style1 {
	FONT-WEIGHT: bold; COLOR: #333333
}
</STYLE>

<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY><!-- 头部表格开始 zmmcu.com -->
<TABLE class=headtab cellSpacing=0 cellPadding=0 width=780 border=0>
  <TBODY>
  <TR>
    <TD vAlign=center align=middle width=172><IMG height=52 
      src="一些常用的软件滤波方法_jj.files/logo.gif" width=172></TD>
    <TD vAlign=center align=middle width=462><IMG height=60 
      src="一些常用的软件滤波方法_jj.files/468X60.gif" width=468></TD>
    <TD vAlign=center align=middle width=126 height=70><A 
      onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.zmmcu.com');" 
      href="http://www.zmmcu.com/showart.asp?id=72#">设为首页</A><BR><A 
      href="javascript:window.external.addFavorite('http://www.zmmcu.com','青青子木');">加入收藏</A><BR><A 
      href="http://www.zmmcu.com/showart.asp?id=72#">联系我们</A></TD></TR>
  <TR>
    <TD class=navtd colSpan=3>
      <SCRIPT language=JavaScript>
	today=new Date();
	function initArray(){
     this.length=initArray.arguments.length
	 for(var I=0;I<this.length;I++)
	 this[I+1]=initArray.arguments[I]  }
      var d=new initArray("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
     document.write("<font color=##000000 style='font-size:9pt;font-family: 宋体'> ",today.getYear(),"年",
   today.getMonth()+1,"月", today.getDate(),"日",d[today.getDay()+1], "</font>" ); </SCRIPT>
         <IMG height=11 src="一些常用的软件滤波方法_jj.files/nav_line.gif" width=2><A 
      class=a1 
      href="http://www.zmmcu.com/index.asp"> <STRONG>首页</STRONG> </A><IMG 
      height=11 src="一些常用的软件滤波方法_jj.files/nav_line.gif" width=2> <A class=a1 
      href="http://www.zmmcu.com/downList.asp"><STRONG>下载中心</STRONG></A> <IMG 
      height=11 src="一些常用的软件滤波方法_jj.files/nav_line.gif" width=2> <A class=a1 
      href="http://www.zmmcu.com/artlist.asp"><STRONG>文章中心</STRONG></A> <IMG 
      height=11 src="一些常用的软件滤波方法_jj.files/nav_line.gif" width=2> <A class=a1 
      href="http://www.zmmcu.com/product.asp"><FONT 
      color=#ffff00><STRONG>产品中心</STRONG></FONT></A> <IMG height=11 
      src="一些常用的软件滤波方法_jj.files/nav_line.gif" width=2> <A class=a1 
      href="http://www.zmmcu.com/consumer.asp"><FONT style="FONT-WEIGHT: bold" 
      color=#ffff00>商务中心 </FONT></A><IMG height=11 
      src="一些常用的软件滤波方法_jj.files/nav_line.gif" width=2> <A class=a1 
      href="http://www.zmmcu.com/bbs"><STRONG>子木论坛</STRONG></A> <IMG height=11 
      src="一些常用的软件滤波方法_jj.files/nav_line.gif" width=2> <A class=a1 
      href="http://www.zmmcu.com/payshow.asp"></A><A class=a1 
      href="http://www.zmmcu.com/contact.asp"><STRONG>购买指南</STRONG></A> <IMG 
      height=11 src="一些常用的软件滤波方法_jj.files/nav_line.gif" width=2><A class=a1 
      href="http://www.zmmcu.com/payshow.asp"><STRONG> 付款说明</STRONG></A></A><A 
      class=a1 href="http://www.zmmcu.com/contact.asp"></A> <IMG height=11 
      src="一些常用的软件滤波方法_jj.files/nav_line.gif" width=2></TD></TR></TBODY></TABLE><BR><!-- 头部表格结束 zmmcu.com -->
<TABLE cellSpacing=0 cellPadding=0 width=760 border=0>
  <TBODY>
  <TR>
    <TD vAlign=center align=left>&nbsp;&nbsp; </TD></TR></TBODY></TABLE><BR>
<TABLE cellSpacing=0 cellPadding=0 width=760 border=0>
  <TBODY>
  <TR>
    <TD width="3%" background=一些常用的软件滤波方法_jj.files/3.gif height=25 
    rowSpan=2>&nbsp;</TD>
    <TD bgColor=#2b90f5 height=4></TD></TR>
  <TR>
    <TD align=left width="97%" bgColor=#eeeeee height=22> <SPAN 
      class=style1>阅读文章</SPAN></TD></TR>
  <TR vAlign=center align=middle>
    <TD colSpan=2 height=30><FONT color=#000000 
      size=3><STRONG>一些常用的软件滤波方法</STRONG></FONT></TD></TR>
  <TR align=middle>
    <TD style="FONT-SIZE: 12px; FONT-FAMILY: '宋体'" colSpan=2>[ 日期: 2005-6-16 ] 
         作者:不详                    字体 [ <A 
      href="javascript:ContentSize(16)">大</A> <A 
      href="javascript:ContentSize(14)">中</A> <A 
      href="javascript:ContentSize(12)">小</A> ] </TD></TR>
  <TR>
    <TD colSpan=2>
      <DIV 
      id=size><BR>&nbsp;&nbsp;1、限副滤波<BR>/*&nbsp;&nbsp;A值可根据实际情况调整<BR>&nbsp;&nbsp;&nbsp;&nbsp;value为有效值,new_value为当前采样值&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;滤波程序返回有效的实际值&nbsp;&nbsp;*/<BR>#define&nbsp;A&nbsp;10&nbsp;
      <P></P>
      <P></P>
      <P>char&nbsp;value;</P>
      <P><BR>char&nbsp;filter()<BR>{<BR>&nbsp;&nbsp;&nbsp;char&nbsp;&nbsp;new_value;<BR>&nbsp;&nbsp;&nbsp;new_value&nbsp;=&nbsp;get_ad();<BR>&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;(&nbsp;new_value&nbsp;-&nbsp;value&nbsp;&gt;&nbsp;A&nbsp;)&nbsp;||&nbsp;(&nbsp;value&nbsp;-&nbsp;new_value&nbsp;&gt;&nbsp;A&nbsp;)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;value;<BR>&nbsp;&nbsp;&nbsp;return&nbsp;new_value;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>}</P>
      <P><BR>2、中位值滤波法<BR>/*&nbsp;&nbsp;N值可根据实际情况调整<BR>&nbsp;&nbsp;&nbsp;&nbsp;排序采用冒泡法*/<BR>#define&nbsp;N&nbsp;&nbsp;11</P>
      <P><BR>char&nbsp;filter()<BR>{<BR>&nbsp;&nbsp;&nbsp;char&nbsp;value_buf[N];<BR>&nbsp;&nbsp;&nbsp;char&nbsp;count,i,j,temp;<BR>&nbsp;&nbsp;&nbsp;for&nbsp;(&nbsp;count=0;countvalue_buf[i+1]&nbsp;)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;temp&nbsp;=&nbsp;value_buf;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value_buf&nbsp;=&nbsp;value_buf[i+1];&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value_buf[i+1]&nbsp;=&nbsp;temp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;return&nbsp;value_buf[(N-1)/2];<BR>}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</P>
      <P><BR>3、算术平均滤波法<BR>/*<BR>*/</P>
      <P><BR>#define&nbsp;N&nbsp;12</P>
      <P><BR>char&nbsp;filter()<BR>{<BR>&nbsp;&nbsp;&nbsp;int&nbsp;&nbsp;sum&nbsp;=&nbsp;0;<BR>&nbsp;&nbsp;&nbsp;for&nbsp;(&nbsp;count=0;countvalue_buf[i+1]&nbsp;)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;temp&nbsp;=&nbsp;value_buf;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value_buf&nbsp;=&nbsp;value_buf[i+1];&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value_buf[i+1]&nbsp;=&nbsp;temp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;for(count=1;count=N)&nbsp;&nbsp;&nbsp;return&nbsp;new_value;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;delay();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new_value&nbsp;=&nbsp;get_ad();<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;return&nbsp;value;&nbsp;&nbsp;&nbsp;&nbsp;<BR>}</P></DIV></TD></TR>
  <TR align=right>
    <TD style="FONT-SIZE: 12px; FONT-FAMILY: '宋体'" colSpan=2>阅读:<FONT 
      color=red>1038</FONT> 次   </TD></TR>
  <TR align=right>
    <TD colSpan=2>【 <A href="javascript:window.print()">打印</A> 
】</TD></TR></TBODY></TABLE><!--  底部表格开始 zmmcu.com -->
<TABLE cellSpacing=0 cellPadding=0 width=760 border=0>
  <TBODY>
  <TR bgColor=#2287ed>
    <TD colSpan=3 height=3></TD></TR>
  <TR>
    <TD align=right><IMG height=34 src="一些常用的软件滤波方法_jj.files/bottom_01.gif" 
      width=8></TD>
    <TD vAlign=center align=middle width=500 
    background=一些常用的软件滤波方法_jj.files/bottom_02.gif><A 
      title="请先加好本站连接.然后联系QQ: 303196938" 
      href="http://www.zmmcu.com/showart.asp?id=72#">友情链接</A> | <A 
      title="联系QQ: 303196938&#13;&#10;邮件: avrsp001@vip.163.com" 
      href="http://www.zmmcu.com/contact.asp">业务联系</A> | <A 
      title="本站建站于2004&#13;&#10;站长: 青青子木" 
      href="http://www.zmmcu.com/showart.asp?id=72#">关于本站</A> | <A title=闲人免进 
      href="http://www.zmmcu.com/showart.asp?id=72#">后台管理</A><BR></TD>
    <TD align=left><IMG height=34 src="一些常用的软件滤波方法_jj.files/bottom_03.gif" 
      width=9></TD></TR>
  <TR>
    <TD class=font1 align=middle colSpan=3><BR>Copyright&copy; 2004-2008 <A 
      href="http://www.zmmcu.com/">青青子木电子世界</A> All Rights Reserved<BR><A 
      href="http://www.miibeian.gov.cn/" target=_blank><FONT 
      color=#ff0000>粤ICP备05008583</FONT></A><BR>Version 2.0 耗时 .03 
      毫秒<BR>请使用IE5.5 以上浏览器访问本站 <BR>
      <SCRIPT language=JavaScript src="一些常用的软件滤波方法_jj.files/click.htm" 
      type=text/javascript></SCRIPT>

      <SCRIPT src="一些常用的软件滤波方法_jj.files/click.aspx"></SCRIPT>
    </TD></TR></TBODY></TABLE>
<SCRIPT language=JavaScript src="一些常用的软件滤波方法_jj.files/floatads.js"></SCRIPT>

<DIV id=yuxingtome style="POSITION: absolute"><A title=子木网首页 
href="http://localhost/" target=_blank><IMG onmouseover=yuxingstop(); 
onmouseout=yuxingstop(0); height=0 src="一些常用的软件滤波方法_jj.files/d_download.gif" 
width=0 border=0></A></DIV>
<SCRIPT language=JavaScript>yuxingtome()</SCRIPT>
<!-- 底部表格结束 zmmcu.com --></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -