The stereo systemHaving a stereo receiver, it makes sense to take the two audio channels, one from each orthogonally polarised antenna, into the computer as a stereo signal. In this way, two independent sets of digital data arrive in the computer. The data may be real or complex depending on the performance of the computer used (and how much one loves to build things). Look here for more information on real vs complex digital data. The Complex fourier transform.
The two sets of digital data are processed by the sliding FFT algorithms, and the output is two sets of complex amplitudes, both updated in about 1/4 of the time required for a morse code dot. Let us call these complex arrays H and V. For details, look here Demo program for sliding FFT
Each set of complex amplitudes H and V is stored in the computer memory as four arrays in total: re_h(i), im_h(i), re_v(i) and im_v(i). i is an index to valid points for 0 The conversion of H and V to a new complex pair A and B (A holds the signal and some noise, B noise only) is an orthonormal transformation. This transformation is defined by 3 transformation coefficients c1,c2 and c3. The algorithm works fine if the initial guess for these coefficients does not correspond to a polarisation mismatch of more than -3dB. To guess circular works fine for all linearly polarised signals.
01 FOR i=0 TO imax
Step through the data again, reject points with too small amplitude, and use the remaining ones to calculate new transformation coefficients.
This algorithm may be inserted into the sliding fft, or it may be used together with a pair of some single frequency digital filters capable of generating a pair of complex amplitudes. In the actual implementation, with this algorithm as a part of the sliding fft algorithm, some summations are done in different order, and temporary data is stored, to minimise the total load on the cpu.