📄 neighborhood.m
字号:
function [values,position] = neighborhood(x,y,coord,points,crossv,anisotropy)% searches the neighborhood of the point (x,y) for the nearest % 'points' number of points and calculates the lag and the relative% coordinates.%% usage: [values,position] = neighborhood(x,y,coord,points,crossv,anisotropy)% 16.6.2003 Rolf Sidlerdist = sqrt(((coord(:,1)-x)/anisotropy).^2+(coord(:,2)-y).^2);%dist = sqrt(((coord(:,1)-x)).^2+(coord(:,2)-y).^2); %(non anisotropic search neighborhood)[lags,index] = sort(dist);index = index(1:points);values = coord(index,3)';position(:,1) = coord(index,1)-x;position(:,2) = coord(index,2)-y;% deleteing first point for crossvaidationif crossvvalues = values(2:end);position = position(2:end,:);end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -