pybic.InstFreqZeroCross

pybic.InstFreqZeroCross(x, dt=1.0, crossType='both', Ninterp=None, T0=0.0)[source]

Calculates instantaneous frequency from zero crossings.

Parameters:
  • x (ndarray) – Data to analyze.

  • dt (float) – Time interval between samples.

  • crossType (str) – Zero-crossing method. Restrict to 'pos2neg', 'neg2pos', or 'both'.

  • Ninterp (int) – Number of interpolation points.

  • T0 (float) – Initial time.

Returns:

[<time>, <frequency>]

Return type:

list