lmlib.utils.beta.zero_cross_ind#
- lmlib.utils.beta.zero_cross_ind(y, threshold=0)#
Returns a list of the indeces of zero crossings
- Parameters
y (array_like of shape=(K,) of floats) – signal vector to detect zero-crossings
threshold (float) – crossing threshold (default: 0).
- Returns
out – array with indices
i
wherey[i]<0
andy[i+1]>=0
(i.e., indices before the threshold).- Return type
ndarray of ints