[SciPy-user] scale arrays with interpolation

Robin robince@gmail....
Sun Sep 14 04:38:32 CDT 2008


On Sun, Sep 14, 2008 at 10:29 AM, Fabian Braennstroem
<f.braennstroem@gmx.de> wrote:

> Thanks! This is a good way with a lot of elements, but I
> think, if one does this with just a few elements in the
> numpy array, one has to do some kind of interpolation, to
> find the 'exact'
> half_width!?

You can find interpolation functions at numpy.interp and in the
scipy.interpolate module.
 Probably scipy.interpolate.interp1d is what you need, but I'm not
sure of the difference between that and numpy.interp.

Robin


More information about the SciPy-user mailing list