Simple Interpolation in Numpy?

Nick Bower nick at nickbower.com
Thu Aug 31 05:47:02 EDT 2000


Nick Bower wrote:

> > How do I do do simple interpolation using NumPy?  I can see an
> > interpolation function in the NumPy C source, so I'm not sure why it's
> > not presented at the Python module level.
> >
>
> Found it - was undocumented though.
>
> from Numeric import *
> new_y = arrayfns.interp(y,x,new_x)

Duh:

import arrayfns
new_y = arrayfns.interp(y,x,new_x)





More information about the Python-list mailing list