Power Spectrum and Autocorrelation of Data in Numpy
I am interested in computing the power spectrum of a system of particles (~100,000) in 3D space with Python. What I have found so far is a group of functions in Numpy ( fft , fftn ,..) which compute the discrete Fourier transform, of which the square of the absolute value is the power spectrum. My question is a matter of how my data are being represented - and truthfully may be fairly simple to answer. The data structure I have is an array which has a shape of ( n ,2), n being the number of particles I have, and each column representing either the x, y, and z coordinate of the n particles. The