convnwb.timestamps.update.change_sampling_rate¶
- convnwb.timestamps.update.change_sampling_rate(times, fs_from, fs_to)[source]¶
Change the effective sampling rate for a set of times values.
- Parameters:
- times1d array
Vector of timestamps to update.
- fs_fromint
The original sampling rate of the times values.
- fs_toint
The new sampling rate to reset the times values to.
- Returns:
- new_times1d array
Vector of updated times values, now reflecting the new sampling rate.