[SciPy-user] scale arrays with interpolation

Fabian Braennstroem f.braennstroem@gmx...
Sun Sep 14 05:55:21 CDT 2008

Hi Robin,

* Robin <robince@gmail.com> wrote:
> 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.

Thanks, this should work!


More information about the SciPy-user mailing list