Hello,
I am trying to program the standard coherence function: Γ2xy( f ) = |Gxy( f )|2 / [Gxx ( f )Gyy( f )] in VC++ using the advanced analysis library.
First I tried:
CrossSpectrum(pSignal1, pSignal2, iItemCount, pMag, pPhase);
Spectrum (pSignal1, iItemCount);
Spectrum (pSignal2, iItemCount);
loop through all points (i):
pResult[i] = ( pMag[i] * pMag[i] ) / (pSignal1[i] * pSignal2[i]);
Then I started using AutoPowerSpectrum, CrossPowerSpectrum, etc... and couldn't find the right combination. Has anyone implemented this before?
Thanks,
Marc
Message Edited by BiomedGuy on 07-13-2005 10:30 AM