pactools
pactools copied to clipboard
Implement cross-bispectrum
Currently, bispectrum-based metrics can only be calculated on a single channel. Adding a cross-channel implementation would be valuable.
Hi, I assume that this is the same as cross-location(or cross channel) CFC. Is this enhancement implemented? If not, can someone please mention the steps to do cross channel cfc ?
Pactools implements 12 different CFC metrics, and the bispectrum is only one of them. For all the other ones, you can measure CFC using either the same channel for phase and amplitude, or two different channels (aka cross-channel CFC).
To measure cross-channel CFC, you need to give two signals to the fit
method:
https://github.com/pactools/pactools/blob/f1ed7095e3dbd663001facaf5646c59c74aaec38/pactools/comodulogram.py#L173-L183