批处理感知器算法的代码matlab w1=[1,0.1,1.1;1,6.8,7.1;1,-3.5,-4.1;1,2.0,2.7;1,4.1,2.8;1,3.1,5.0;1,-0.8,-1.3; 1,0.9,1.2;1,5.0,6.4;1,3.9,4.0]; w2=[1,7.1,4.2;1,-1.4,-4.3;1,4.5,0.0;1,6.3,1.6;1,4.2,1.9;1,1.4,-3.2;1,2.4,-4.0; 1,2.5,-6.1;1,8.4,3.7;1,4.1,-2.2]; w3=[1,-3.0,-2.9;1,0.5,8.7;1,2.9,2.1;1,-0.1,5.2;1,-4.0,2.2;1,-1.3,3.7;1,-3.4,6.2; 1,-4.1,3.4;1,-5.1,1.6;1,1.9,5.1]; figure; plot(w3(:,2),w3(:,3),'ro'); hold on; plot(w2(:,2),w2(:,3),'b+'); W=[w2;-w3];%增广样本规范化 a=[0,0,0]; k=0;%记录步数 n=1; y=zeros(size(W,2),1);%记录错分的样本 while any(y<=0) k=k+1; y=a*transpose(W);%记录错分的样本 a=a+sum(W(Find(y<=0),:));%更新a if k >= 250 break end end if k<250 disp(['a为:',num2str(a)]) disp(['k为:',num2str(k)]) else disp(['在250步以内没有收敛,终止']) end %判决面:x2=-a2*x1/a3-a1/a3 xmin=min(min(w1(:,2)),min(w2(:,2))); xmax=max(max(w1(:,2)),max(w2(:,2))); x=xmin-1:xmax+1;%(xmax-xmin): y=-a(2)*x/a(3)-a(1)/a(3); plot(x,y)
上传时间: 2016-11-07
上传用户:a1241314660
#include "string.h" #include "ctype.h" #include "stdio.h" search(char pd[]) {FILE *fp; int time=0,i=0,j=0,add[80],k=0,m; char *ch, str[900]; m=strlen(pd); if((fp=fopen("haha.txt","r"))==NULL) { printf("Cannot open this file\n"); exit(0); } for(;!feof(fp);i++) { str[i]=fgetc(fp); if(tolower(str[i])==tolower(pd[k])) {k++; if(k==m) if(!isalpha(i-m)&&!isalpha((str[i++]=fgetc(fp)))) { time++; add[j]=i-m+1; j++; k=0; } else k=0; } } if(time) { printf("The time is:%d\n",time); printf("The adders is:\n"); for(i=0;i<j;i++) printf("%5d",add[i]); if(i%5==0) printf("\n"); getch(); fclose(fp); } else printf("Sorry!Cannot Find the word(^_^)"); } main() { char pd[10],choose='y'; int flag=1; while(flag) {printf("In put the word you want to seqarch:"); scanf("%s",pd); search(strlwr(pd)); printf("\nWould you want to continue?(Y/N):"); getchar(); scanf("%c",&choose); if((tolower(choose))=='n') flag=0; else flag=1; } printf("Thanks for your using!Bye-bye!\n"); getch(); }
标签: 学生专用
上传时间: 2016-12-29
上传用户:767483511
The Universal Radio Hacker (URH) is a software for investigating unknown wireless protocols. Features include * __hardware interfaces__ for common Software Defined Radios * __easy demodulation__ of signals * __assigning participants__ to keep overview of your data * __customizable decodings__ to crack even sophisticated encodings like CC1101 data whitening * __assign labels__ to reveal the logic of the protocol * __fuzzing component__ to Find security leaks * __modulation support__ to inject the data back into the system * __simulation environment__ to perform stateful attacks
标签: Universal Hacker Radio The URH
上传时间: 2018-11-23
上传用户:milo
The concept of “smart city” is often used implying that the reader has a clear and common notion of what it means. However, in the current literature it is very hard to Find a precise definition. What is even more interesting, it is not so easy to Find a precise definition of what a city is.
标签: Facilitating Developing Designing Cities Smart
上传时间: 2020-05-25
上传用户:shancjb
We review the current applications of photonic technologies to Smart Cities. Inspired by the future needs of Smart Cities, we then propose potential applications of advanced photonic technologies. We Find that photonics already has a major impact on Smart Cities, in terms of smart lighting, sensing, and communication technologies. We further Find that advanced photonic technologies could lead to vastly improved infrastructure, such as smart water‐supply systems. We conclude by proposing directions for future research that will have the greatest impact on realizing Smart City initiatives.
上传时间: 2020-05-26
上传用户:shancjb
In recent years, cellular voice networks have transformed into powerful packet-switched access networks for both voice communication and Internet access. Evolving Universal Mobile Telecommunication System (UMTS) networks and first Long Term Evolution (LTE) installations now deliver bandwidths of several megabits per second to individual users, and mobile access to the Internet from handheld devices and notebooks is no longer perceived as slower than a Digital Subscriber Line (DSL) or cable connection. Bandwidth and capacity demands, however, keep rising because of the increasing number of people using the networks and because of bandwidth-intensive applications such as video streaming. Thus, network manufacturers and network operators need to Find ways to continuously increase the capacity and performance of their cellular networks while reducing the cost.
标签: BRINGING NETWORKS Beyond and 3G 4G
上传时间: 2020-05-26
上传用户:shancjb
This book is an entry-level text on the technology of telecommunications. It has been crafted with the newcomer in mind. The twenty-one chapters of text have been prepared for high-school graduates who understand algebra, logarithms, and the basic principles of electricity such as Ohm’s law. However, it is appreciated that many readers require support in these areas. Appendices A and B review the essentials of electricity and mathematics up through logarithms. This material was placed in the appendices so as not to distract from the main theme, the technology of telecommunication systems. Another topic that many in the industry Find difficult is the use of decibels and derived units. Appendix C provides the reader a basic understanding of decibels and their applications. The only mathematics necessary is an understanding of the powers of ten
标签: Telecommunications Fundamentals 2nd of ed
上传时间: 2020-05-27
上传用户:shancjb
This book was conceived in such a special way. From our experience, and despite the increasing interest that we perceived amongst the research community in HAPS, there was not any book in the market entirely devoted to HAPS. We could only Find some satellite communications books including only fragments related to HAPS, covering the ‘generalities’. A need for a reference book which could highlight state- of-the-art HAPS-related topics was therefore envisaged. Moreover, most of the information related to HAPS could only be found in technical reports, official recommendations, conference proceedings and journal papers.
上传时间: 2020-05-27
上传用户:shancjb
Our original effort in writing this book was to create a starting point for those in the business community who did not have a high level of technical expertise but needed to have some understanding of the technical functions of their information and communication technologies (ICT) in a corporate environment. As was true with the first edition of this book, if you are already an engineer, Find some other form of pleasure reading—this text is not designed for you!
标签: Communications Introduction Technologies to
上传时间: 2020-05-27
上传用户:shancjb
With the rapid expansion of wireless consumer products,there has been a con- siderable increase in the need for radio-frequency (RF) planning, link plan- ning, and propagation modeling.A network designer with no RF background may Find himself/herself designing a wireless network. A wide array of RF planning software packages can provide some support, but there is no substi- tute for a fundamental understanding of the propagation process and the lim- itations of the models employed. Blind use of computer-aided design (CAD) programs with no understanding of the physical fundamentals underlying the process can be a recipe for disaster. Having witnessed the results of this approach, I hope to spare others this frustration.
标签: Introduction Propagation to RF
上传时间: 2020-05-27
上传用户:shancjb