I am trying to compute a 3D power spectrum -- that is, averaged power in frequency shells. I think I'm doing the calculation of shell densities correctly, I'm just not sure how to determine the frequency of each shell.
Supposing the sampling rate Fs
is the same in each dimension, and the length of the original samples in each dimension is also the same value N
. The shell "index" is idx = sqrt(i*i + j*j + k*k)
where i, j, and k are the extent in each direction. How do I compute the frequency of this shell?