[SciPy-user] scale arrays with interpolation
Sun Sep 14 05:55:21 CDT 2008
* Robin <firstname.lastname@example.org> wrote:
> On Sun, Sep 14, 2008 at 10:29 AM, Fabian Braennstroem
> <email@example.com> 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'
> 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