pygwb.coherence

The coherence module only contains one method, which is used to calculate the coherence spectrum given two power spectrograms and a cross-spectrogram.

Examples

Given two power spectrograms and a cross-spectrogram, the coherence can be computed by

>>> from pygwb.coherence import calculate_coherence
>>> calculate_coherence(psd_1, psd_2, csd)

Functions

calculate_coherence(psd_1, psd_2, csd)

Calculate a coherence spectrum given two power spectrograms and a cross-spectrogram.