批處理感知器算法的代碼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
To show Gibbs phenomenon, using FFTs to sum Fourier Give the curve plot at the end of the simulation
標簽: the phenomenon simulati Fourier
上傳時間: 2014-01-07
上傳用戶:佳期如夢
In the end, I don t understand the PC, so I will fine the date to you. I only know flash.
標簽: the understand flash date
上傳時間: 2016-10-30
上傳用戶:lhc9102
Long-distance rmi transfers java to realize may realize a service end many client side conversation contact surface to be artistic
標簽: realize Long-distance conversation transfers
上傳時間: 2017-01-21
上傳用戶:cuiyashuo
Mastering Dojo will teach you how to build an Internet application that will impress your end users and delight you while you’re writing it. The book also explains Dojo’s JavaScript underpinnings, both for newcomers and for refugees from other languages.
標簽: will application Mastering Internet
上傳時間: 2017-07-02
上傳用戶:chenbhdt
Use of this source code is subject to the terms of the Microsoft end-user
標簽: Microsoft the end-user subject
上傳時間: 2013-12-18
上傳用戶:rishian
How to desC1rs yea !# 4as end e
上傳時間: 2013-12-17
上傳用戶:yangbo69
how to search for the biggest end folder from your sistem (under Linux)
標簽: biggest folder search sistem
上傳時間: 2013-12-19
上傳用戶:TF2015
This code detects memory leaks in embedded VC++ almost the same way crtdbg does in VC++. At the end of program execution it will display in the debug window if there were any memory leaks and how the memory looks so you can identify where your memory leak occurred. It will display in the debug window a message saying no memory leaks detected if there are no memory leaks. Similar to what crtdbg.h does in VC++. The code detects memory leaks generated with calls to new and delete operators in C++. The code doesn t detect memory leaks generated with C functions: malloc, calloc, free, but that can be done in the future. Let me know and I will program it.
標簽: the embedded detects almost
上傳時間: 2015-05-07
上傳用戶:comua
This will sample all 8 A/D-channels by the continous mode. Each end of conversion will call an interrupt routine, where the AD-channel is put to Port4[2..0] and the upper nibble of the result is put to Port4[7..4]. Port 4 is connected to the user LEDs of the FlashCan100P Evaluation-Board
標簽: will D-channels conversion continous
上傳時間: 2013-12-09
上傳用戶:zm7516678