Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming the coherence function using Advanced Analysis Library

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

0 Kudos
Message 1 of 2
(3,083 Views)
Find a response to this question here.
0 Kudos
Message 2 of 2
(3,057 Views)