first_threshold_crossing¶ vallenae.features.first_threshold_crossing(data, threshold)[source]¶ Compute index of first threshold crossing. Parameters: data (ndarray) – Input array threshold (float) – Threshold amplitude Return type: Optional[int] Returns: Index of first threshold crossing. None if threshold was not exceeded