This is post #133.
As far as I understood it compares:
a) Inverting one of the inputs electrically and inverting the acquired data again in software prior to cross-correlation
to
b) Cross-correlation of two channels with normal polarity.
@FrenchFan: I haven't yet taken the effort to crawl through the math, but this result puzzles me.
With one of the channels inverted:
- I do expect an improvement for everything that has to do with polarity dependent imperfections of the DAC (-> the errors of the 2 channels do not correlate and get reduced).
- I do
not expect, that a common-mode signal gets reduced by the cross-correlation. My understanding is: The common-mode signal is still correlated - just with the sign flipped / a phase of 180 deg.
Edit: If this holds true, e.g. a 2nd harmonic caused by the ADC with 180deg phase compared to the other input channel would as well be removed.
What are your thoughts regarding this?
Edit: Of course everyone is welcome to help me resolve what appears a contradiction to me.
nanook
The answer is "No".
If one channel has a harmonic line and the other
channel has the same line phase-shifted by 180°, you will find
this line at the correlation output.
There is a correlation.
This comes from the correlation in time, I take
the equation again, and also tell you to go see the doc of
"Zurich Industrie" that I put at the beginning, there are
small drawings that explain how the correlation is done.
It is exactly like the convolution with the time of a
function, reversed.
Correlation or convolution, the understanding is identical.
What the equation of the correlation function shows
The first signal = s(teta)
the 2nd signal = r*(teta-to)
You do an integral in d(teta).
so for each point "to" you will have a correlation value
that corresponds to the integral at "to" given.
You move "to" and you start again.
So on you will arrive at having a function of "to"
therefore the correlation function.
This time shift is neither more nor less than a phase shift.
look at this link there is an animated gif on the
correlation of 2 sines.
en.wikipedia.org
This correlation function by the Fourier transform
is transformed into FFT1*conj(FFT2).
In fact we do the Fourier transform of the correlation function in time, in our denoiser.
With the FFT the time function is still there so we see that
to make it we slide the signals in phase, so the phase
information is lost, but your signal is there.
I explained above the analog correlator which is neither more nor less than the correlation integral put into electronics.
multiplier + integrator, you can resume the reasoning with
and you will fall back on your feet.
What I said in my first email, to understand correlation and
convolution you need a small piece of paper, a pencil and put your head
in your hands.
I had done this at school and I remember well that it was hard.