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

📄 fnn_ml2.m

📁 空间统计工具箱
💻 M
字号:
function tnnmat=fnn_ml2(xcoord, ycoord, m, n, istart)
%
%fnn_ml2(xcoord, ycoord, m, n, istart)
%
%This function computes m spatiotemporal nearest neighbors for each observation from observation 1 to (n-istart).
%%INPUT:
%
%xcoord, ycoord are n by 1 vectors ordered by time with observation 1 the most recent and observation n the oldest.
%
%m is the number of nearest neighbors previous in time
%%n is the number of observations
%%istart is where to begin computing temporal nearest neighbors. This allows istart observations to exist before beginning, 
%and istart>m.
%
%
%OUTPUT:
%
%tnnmat is a n by m matrix of spatiotemporal nearest neighbors.%
%
%NOTES:
%
%There is a fortran mex version of a similar function, and it runs faster. This function will be acceptably fast for moderate sample sizes
%in version 6.5 due to the JIT compiler.
%
%This function requires more or n-squared memory locations, and hence will not work for large n.
%
%A similar function was used in:
%
%Pace, R. Kelley and Ronald Barry, O.W. Gilley, C.F. Sirmans, 
%揂 Method for Spatial-temporal Forecasting with an Application to Real Estate Prices,

⌨️ 快捷键说明

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