A generalized weight matrix for autocorrelated superficial data