pygwb.coherence.calculate_coherence
- pygwb.coherence.calculate_coherence(psd_1, psd_2, csd)[source]
 Calculate a coherence spectrum given two power spectrograms and a cross-spectrogram.
- Parameters:
 psd_1_spectrum (
np.array) – PSD spectrum of first detector.psd_2_spectrum (
np.array) – PSD spectrum of second detector.csd_spectrum (
np.array) – Spectrum of the cross-spectral density of the two detectors.
- Returns:
 - coherence: 
np.array Coherence spectrum
- coherence: