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

📄 find_remodify_pts.m

📁 免疫算法实现多峰、多极值函数平面曲面拟合
💻 M
字号:
function [idx,pts_x,pts_y]=find_remodify_pts(result2,t_x,t_y,threshold)
% find out the samples that need to be remodified according to the
% threshold set by clients
% -------------------------------------
count=find(result2(:,1));
nodenum=length(count);

% calculate the output of the network
centers=result2(:,2:size(result2,2)-1);
radius=result2(:,size(result2,2));
cou1=find(radius<0.01);
radius(cou1)=0.01;
r1=1./(radius*sqrt(2));
r2=r1*ones(1,size(t_x,2));
p1=radbas(dist(centers,t_x).*r2);
weights=t_y*pinv(p1);
result1=weights*p1;
error=abs(t_y-result1);

% judge the errors between the network output and the standard output
idx=find(error>threshold);
pts_x=t_x(:,idx);
pts_y=t_y(:,idx);

⌨️ 快捷键说明

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