📄 fclosest_nn2.m
字号:
function [nnlist]=fclosest_nn2(xcoord, ycoord)
%
%[nnlist]=fclosest_nn2(xcoord, ycoord)
%
%Finds the closest neighbor to each observation
%
%INPUT:
%
%The two n by 1 vectors xcoord, ycoord which represent locational
%coordinates.
%
%OUTPUT:
%
%The n by 1 vector nnlist containing indices to the nearest neighbor
%
%NOTES:
%
%Closest neighbor dependence was studied in:
%
%Pace, R. Kelley, and Dongya Zou,
%揅losed-Form Maximum Likelihood Estimates of Nearest Neighbor Spatial Dependence,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -