pybic.GetPolySpec

pybic.GetPolySpec(spec, f, lilguy=1e-06, rando=False, v=[])[source]

Estimate the nth-order polyspectrum/polycoherence spectrum of a given (f1,f2,…,fn) value

Parameters:
  • spec (ndarray) – Input spectrogram.

  • f (list of int) – List of frequencies to analyze.

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

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

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

Returns:

nCoh,nSpec,nSpec_i*s = GetPolySpec(...)

  • nCoh (float) - Polycoherence value.

  • nSpec (complex) - Polyspectrum value.

  • nSpec_i (ndarray) - Local (i.e., time-dependent) polyspectrum.

Return type:

list