Find the approximate end times of waves given times of peaks. This is based on local minima of \(R_t\).
find_ends(rt_values, peaks_x, search_range)A list containing the detected end times of waves, as scalars.
A vector containing rt values for each time point.
Time points of peaks based on daily cases (one for each wave).
The range of data points to go through for filtering invalid ends (a vector).
Note: This is provided for convenience only, and is not meant to replace an analyst's determination of wave bounds.