A rather unusual question... I am looking for a way to calculate the coherence value of two signals which are several cycles of a fixed frequency sinusoidal like waveform. i.e. I need a single value in the range 0-1 for the coherence of the two waveforms.
I have tried calculating the coherence using the standard formula: |Sxy|^2 / (Sxx.Syy) where Sxy is the Cross Power Spectrum and Sxx and Syy are the AutoPower Spectrums and then extracting the value of the single frequency I am interesed in from the frequency domain response. But the coherence specturm calcuation using this technique is only valid with averaged data samples, and I only have *one* set of sampled data for each waveform, so I always get a result of 1.0 regardless of the actual coherence between the two waveforms.
Does anyone know of a way to calculate coherence, or a "coherence like" result for *non-averaged* data that gives a result from 0 to 1 for two similar sine waves?
Any help appreciated.
Thanks Dave :)