This code is (largely) a port from Matlab to R of the code from 2DSpecTools: A 2D spectral analysis toolkit for Matlab by Taylor Perron et al.

Hann2D(M)

Arguments

M

a matrix

Value

a list with two elements the windowed matrix H and the sum of the coefficients Wss