fnn_mex2.m

来自「空间统计工具箱」· M 代码 · 共 32 行

M
32
字号
function tnnmat=fnn_mex2(xcoord, ycoord, ms, n, istart)
%
%tnnmat=fnn_mex2(xcoord, ycoord, ms, n, istart)
%
%This function computes m spatiotemporal nearest neighbors for each observation from observation 1 to (n-istart). 
%This matlab function calls a Fortran 90 Mex function, tnmex4.dll. For other platforms, the fortran source code is
%available in a subdirectory within the space_time subdirectory under the examples subdirectory.
%
%INPUT:
%
%xcoord, ycoord are n by 1 vectors ordered by time with observation 1 the most recent and observation n the oldest.
%
%ms 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>ms.
%
%
%OUTPUT:
%
%tnnmat is a n by ms matrix of spatiotemporal nearest neighbors.
%
%
%NOTES:
%
%
%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 + =
减小字号Ctrl + -
显示快捷键?