Interpolating a smaller array into a larger array and vice versa

  • Thread starter Thread starter DamienRoot6
  • Start date Start date
D

DamienRoot6

Guest
Hi,

I'm looking for a way to interpolate data in a larger array into a smaller array or vice versa?

If for example I have an array with 137 elements of data in it and I want to size that data up into an array with 2000 elements. At the same time I want to interpolate the 137 values so they fit evenly across the 2000 elements in the new array. I therefore need some sort of interpolation / sampling mechanism, a bit like resizing an image in an arbitrary fashion.

I'm not after anything that's super clever, so really just a simple linear interpolation will be fine. I'm thinking something along the lines of resizing an image without any smoothing as it's not necessary for my application.

Does anyone have an algorithms that can achieve this?

Many thanks,

Damien

Continue reading...
 
Back
Top