duration¶ vallenae.features.duration(data, threshold, samplerate)[source]¶ Compute the duration of a hit. Parameters: data (ndarray) – Input array (hit) threshold (float) – Threshold amplitude samplerate (int) – Sample rate of input array in Hz Return type: float Returns: Duration in seconds