something about function calculate_time_offset
Closed this issue · 3 comments
szzadkk commented
Get the two mean time steps. Take the smaller one for the interpolation.
dt_A = np.mean(np.diff(times_A))
dt_B = np.mean(np.diff(times_B))
if dt_A >= dt_B:
dt = dt_A
else:
dt = dt_B
I note that the comment take the smaller one, but the code takes the bigger one....
bacalfa commented
Same thing appears to happen in function compute_aligned_poses
(note the >=
sign):
bacalfa commented
Actually, frequency is the inverse of time. So "lower frequency" means <=
when comparing arrays in the time domain.
szzadkk commented
Actually, frequency is the inverse of time. So "lower frequency" means
<=
when comparing arrays in the time domain.
I made a mistake, and get it now, thank you!