Hello, thank you very much for this solution, i'll try to adapt it to my problem, i think i'll be able to. By the way, i wrote about a "sliding-window" weight matrix, it's an expression used in satellite images processing, esp. convolution filters, meaning that the main matrix is not confronted to another one of the same dimensions, but to a much smaller one. The calculus is executed value by value (pixels on an image), centering the small matrix on each one, hence the name of sliding window.
Laurent -- Laurent Jégou Cartographe et enseignant UTM - Dépt. Géographie 31058 TOULOUSE Cedex 9 - 05.61.50.43.89 http://www.univ-tlse2.fr/geoprdc [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.