get_index_from_threshold#
- petpal.kinetic_modeling.graphical_analysis.get_index_from_threshold(times_in_minutes: numpy.ndarray, t_thresh_in_minutes: float) int#
Get the index after which all times are greater than the threshold.
- Parameters:
times_in_minutes (np.ndarray) – Array containing times in minutes.
t_thresh_in_minutes (float) – Threshold time in minutes.
- Returns:
int – Index for first time greater than or equal to the threshold time.
Notes
If the threshold value is larger than the array, we return -1.