pybic.GetBispecBootstrap

pybic.GetBispecBootstrap(spec, v=[0, 0, 0], lilguy=1e-06, j=0, k=0, Ntrials=100)[source]

Estimate mean and std dev of bicoherence for single (f1,f2) value.

Uses bootstrapping, i.e., resampling w/ replacement.

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.

  • Ntrials (int) – Number of random trials.

Returns:

b2boot,Bboot,Bi_meas = GetBispecBootstrap(...)

  • b2boot (float) - Bootstrap bicoherence value.

  • Bboot (complex) - Bootstrap bispectrum value.

  • Bi_meas (complex) - Estimated bispectrum value.

Return type:

list