Skip to content
Prev 920 / 29559 Next

Interpolating along an XY path

Rob Schick wrote:
What exactly do you mean by 'regularize'?

  Have you got (x,y,t) data for spotting an animal at point (x,y) at 
time t where t is irregular, and you want to 'regularize' in t? Or do 
you want to regularize in space, so you end up with points all the same 
distance apart? That might not be possible depending on the spacing of 
your points...

  I think you're going to end up interpolating between pairs of points. 
Its quite easy to interpolate points between (x0,y0) and (x1,y1), the 
coords are just (x0+(1:N)*dx, y0+(1:N)*dy) where dx is (x1-x0)/N and 
similarly for y. Or I might be one off there...

Barry