I am using an FFT function in PHP language (https://gist.github.com/mbijon/1332348) which works very well, but cant produce PSD from its output:
$fft = Fourier($data,1);
// $fft[0] is real portion of 1
// $fft[1] is imaginary portion of 1
// $fft[2] is real portion of 2
// $fft[3] is imaginary portion of 2
// ...
// $fft[n-1] is real portion of n
// $fft[n] is imaginary portion of n
PSD formula In Matlab:
PSD = Y.*conj(Y)/N
I cant understand this formula in math notation form...
How can I adapt this formula to work with that output?
conj
does, right? (if not: research that.) $\endgroup$ – Marcus Müller Aug 6 '20 at 18:09