pactools icon indicating copy to clipboard operation
pactools copied to clipboard

Implement cross-bispectrum

Open TomDLT opened this issue 5 years ago • 2 comments

Currently, bispectrum-based metrics can only be calculated on a single channel. Adding a cross-channel implementation would be valuable.

TomDLT avatar Mar 26 '19 17:03 TomDLT

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 ?

akatav avatar Nov 21 '19 06:11 akatav

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

TomDLT avatar Nov 21 '19 17:11 TomDLT