Nearest Neighbor Spatial Weights Matrix

版本 1.1.0.0 (2.1 KB) 作者: Patrick Walsh
uses x,y coordinates to produce one of several types of nearest-neighbor spatial weight matrix.
736.0 次下载
更新时间 2013/5/2

查看许可证

There are several other nearest neighbor SWM programs out there, but many of them require significantly more memory to run and do not work on large datasets. This file should work on large datasets (have tested on >100,000 obs). Furthermore, several options are available for the weights. The user can choose equal weights for each neighbor, or weights based on distance. This allows the NN specification more accuracy.

引用格式

Patrick Walsh (2024). Nearest Neighbor Spatial Weights Matrix (https://www.mathworks.com/matlabcentral/fileexchange/36601-nearest-neighbor-spatial-weights-matrix), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Code made more efficient and a potential error corrected.

1.0.0.0