on-internet
← Community

How can I exclude sampling gaps when calculating accompanying time between two Ganos trajectories?

Stack Overflow ·

I am using Ganos in PolarDB for PostgreSQL to calculate how long two trajectories remain within a specified distance of each other. I need to exclude missing-data intervals. My rule is: Linearly interpolate between consecutive samples only when their time difference is 120 seconds or less. If the time difference exceeds 120 seconds, treat the interval between those samples as unknown. Count accompanying time only when both trajectories have valid positions. Do not merge accompanying intervals across unknown periods. The following synthetic example uses Cartesian coordinates and a distance thre

Comments

Sign in or sign up to comment and upvote.

No comments yet.