InvSWM_F(xcoord,ycoord,lower,upper,RowStdOpt)
版本 1.3.0.0 (8.3 KB) 作者:
Patrick Walsh
Creates an inverse-distance SWM, from X and Y coords.Can be used on very large datasets
Uses x,y coordinates to produce distance-based spatial weight matrices useful for spatial econometric regressions. The user is asked to input x and y coordinates, as well as a lower and upper bound threshold for the neighborhood.
The code is adapted from a previous version by Shawn Bucholtz of the USDA. A correction is made to set the (i,i) th elements (the diagonals) equal to zero.
Unlike other similar programs, this one can be used on very large datasets.
引用格式
Patrick Walsh (2026). InvSWM_F(xcoord,ycoord,lower,upper,RowStdOpt) (https://ww2.mathworks.cn/matlabcentral/fileexchange/27526-invswm_f-xcoord-ycoord-lower-upper-rowstdopt), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2008a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- AI and Statistics > Statistics and Machine Learning Toolbox > Cluster Analysis and Anomaly Detection > Nearest Neighbors >
在 Help Center 和 MATLAB Answers 中查找有关 Nearest Neighbors 的更多信息
