neuralib.locomotion.position.interp_gap2d

neuralib.locomotion.position.interp_gap2d(t, xy, duration)[source]

UNSTABLE.

Interpolate over gaps in position record.

Parameters:
  • t (ndarray) – Time Vector. Array[float, N]

  • xy (ndarray) – 2D array coordinates in xy. Array[float, [N, 2]]

  • duration (float) – Maximum duration of a gap that should be interpolated over. same unit as t

Returns:

Corrected x,y coordinates. Array[float, [N, 2]]

Return type:

ndarray