vallenae.features.rise_time¶
-
vallenae.features.
rise_time
(data, threshold, samplerate, first_crossing=None, index_peak=None)[source]¶ Compute the rise time.
The rise time is the time between the first threshold crossing and the peak amplitude.
- Parameters
data (
ndarray
) – Input array (hit)threshold (
float
) – Threshold amplitude (in volts)samplerate (
int
) – Sample rate of the input arrayfirst_crossing (
Optional
[int
]) – Precomputed index of first threshold crossing to save computation timeindex_peak (
Optional
[int
]) – Precomputed index of peak amplitude to save computation time
- Return type