求标准偏差 > function c=myfunction(x) > [m,n]=size(x) > t=0 > for i=1:numel(x) > t=t+x(i)*x(i) > end > c=sqrt(t/(m*n-1)) function c=myfunction(x) [m,n]=size(x) t=0 for i=1:m for j=1:n t=t+x(i,j)*x(i,j) end end c=sqrt(t/(m*n-1
标签: gt myfunction function numel
上传时间: 2014-09-03
上传用户:jjj0202
本程序可以对一个完整的类pascal程序进行语法分析并将分析的结果输出显示。 程序要求输入的字符串必须有完整的程序体说明以及程序开始的标志,否则,该语法分析器给出错误信息。 当进行完上述判断后,则进行各个语句串的分析,其中包括赋值语句,分支语句与循环语句(可嵌套判断),并将判断结果显示,若有错误,则输出错误类型以及行号。 输出结果的形式:该语法分析器在结束一种句型分析时给出一个类型信息例如:if 1 then j:=j+1 的判断信息为:“赋值语句” 和“if then 分支语句” 。
上传时间: 2013-12-23
上传用户:R50974
使用说明 使用时打开此例题目录下pic中的图片,然后依次单击按钮“转”、“1”、“2”、“3”、“4”和“5”,就可以实现精确的车牌定位。 具体步骤 1.24位真彩色->256色灰度图。 2.预处理:中值滤波。 3.二值化:用一个初始阈值T对图像A进行二值化得到二值化图像B。 初始阈值T的确定方法是:选择阈值T=Gmax-(Gmax-Gmin)/3,Gmax和Gmin分别是最高、最低灰度值。 该阈值对不同牌照有一定的适应性,能够保证背景基本被置为0,以突出牌照区域。 4.削弱背景干扰。对图像B做简单的相邻像素灰度值相减,得到新的图像G,即Gi,j=|Pi,j-Pi,j-1|i=0,1,…,439 j=0,1,…,639Gi,0=Pi,0,左边缘直接赋值,不会影响整体效果。 5.用自定义模板进行中值滤波 区域灰度基本被赋值为0。考虑到文字是由许多短竖线组成,而背景噪声有一大部分是孤立噪声,用模板(1,1,1,1,1)T对G进行中值滤波,能够得到除掉了大部分干扰的图像C。 6.牌照搜索:利用水平投影法检测车牌水平位置,利用垂直投影法检测车牌垂直位置。 7.区域裁剪,截取车牌图像。
上传时间: 2014-01-17
上传用户:851197153
IDE开发环境,可以挂载SDCC The BASIC IDE is a new, RAD (Rapid Application Development) IDE (Integrated Development Environment) for the RapidQ programming language. The IDE currently has rich project options, a form designer (similar to Delphi s), and code editor. The BASIC IDE is being coded in Borland® Delphi® . We are currently using Delphi 6, but you should be able to use Delphi 3 or later (Delphi 7 included). Some of the BASIC IDEs features include: Form Designer with support for all of RapidQ s components Flexible Code Editor Project Management Written in OO (Object Oriented) Delphi. Some future items that we are working on are: Code Tip Code Completion CVS Integration Code Editor Macros Point-and-Click access to subroutines, functions, and variables
上传时间: 2016-07-05
上传用户:dapangxie
程序名:ga_bp_predict.cpp 描述: 采用GA优化的BP神经网络程序,用于单因素时间 序列的预测,采用了单步与多步相结合预测 说明: 采用GA(浮点编码)优化NN的初始权值W[j][i],V[k][j],然后再采用BP算法 优化权值
标签: ga_bp_predict cpp 程序 BP神经网络
上传时间: 2014-02-18
上传用户:冇尾飞铊
动态规划的方程大家都知道,就是 f[i,j]=min{f[i-1,j-1],f[i-1,j],f[i,j-1],f[i,j+1]}+a[i,j] 但是很多人会怀疑这道题的后效性而放弃动规做法。 本来我还想做Dijkstra,后来变了没二十行pascal就告诉我数组越界了……(dist:array[1..1000*1001 div 2]...) 无奈之余看了xj_kidb1的题解,刚开始还觉得有问题,后来豁然开朗…… 反复动规。上山容易下山难,我们可以从上往下走,最后输出f[n][1]。 xj_kidb1的一个技巧很重要,每次令f[i][0]=f[i][i],f[i][i+1]=f[i][1](xj_kidb1的题解还写错了)
上传时间: 2014-07-16
上传用户:libinxny
The production of this book required the efforts of many people, but two in particular deserve to be singled out for their diligent, sustained, and unselfish efforts. Sally Stickney, the book s principal editor, navigated me through that minefield called the English language and contributed greatly to the book s readability. Marc Young, whose talents as a technical editor are nothing short of amazing, was relentless in tracking down bugs, testing sample code, and verifying facts. Sally, Marc: This book is immeasurably better because of you. Thanks.
标签: production particular required efforts
上传时间: 2016-07-15
上传用户:ve3344
If you re like me, you re excited by what people do with template metaprogramming (TMP) but are frustrated at the lack of clear guidance and powerful tools. Well, this is the book we ve been waiting for. With help from the excellent Boost Metaprogramming Library, David and Aleksey take TMP from the laboratory to the workplace with readable prose and practical examples, showing that "compile-time STL" is as able as its runtime counterpart. Serving as a tutorial as well as a handbook for experts, this is the book on C++ template metaprogramming."Chuck Allison, Editor, The C++ Source
标签: metaprogramming you template excited
上传时间: 2016-07-20
上传用户:gundamwzc
vxWorks下基于缓冲队列的全双工网络通讯.pdf 文章针对半自动大型仪器使用半~K..T--网络通讯造成的效率下降问题,建立了在嵌入式实时操作系统vxWorks 下全双工网络通讯的模式,并特别提出了双缓冲队列的流水线处理方法和通讯死时J"l的概念。该方法充分利用vxWorks 对多任务和网络的良好支持,做到了在操作人员层面上的软件零死时间,在改善系统响应特性,提高软件效率上都很有 帮助。因此比半双工通讯方式更加适用于半自动控制
上传时间: 2016-07-25
上传用户:zhouli
按作业效益非增序输入作业的截止期限,要求使用上述规则设计出一个算法,使得输出为一个作业可行集j[]。
标签: 输入
上传时间: 2013-12-21
上传用户:gaome