pybic.GetBispec

pybic.GetBispec(spec, v=[0, 0, 0], lilguy=1e-06, j=0, k=0, rando=False)[source]

Estimate local bispectrum and bicoherence of a single (f1,f2) value.

Parameters:
  • spec (ndarray) – Input spectrogram.

  • v (list of int) – List of time-series’ indices to analyze.

  • lilguy (float) – Small value to avoid 0/0 errors.

  • j (int) – Index 1.

  • k (int) – Index 2.

  • rando (float) – Randomization level (1.0 if True).

Returns:

b2,B,Bi = GetBispec(...)

  • b2 (float) - Bicoherence value.

  • B (complex) - Bispectrum value.

  • Bi (ndarray) - Local (i.e., time-dependent) bispectrum.

Return type:

list