?? perf1.m
字號:
function [out]=perf(in,x,y,h,id);
%
% Calculates the performance of a given
% set of parameters that have been decoded
% from the population members.
% Works for the whole population.
%
global stop;
[D L]=size(in);
for i = 1 : D
if stop == 1
break;
end
if id == 1
set(h,'position',[410 25 180*(i/D) 20]);
else
set(h,'position',[410 65 180*(i/D) 20]);
end
c=in(i,:);
yest=x*c';
out(i,1)=sum((y-yest).^2);
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -