numpy.interp()

numpy.interp

numpy.interp(x, xp, fp, left=None, right=None, period=None) [source]

One-dimensional linear interpolation.

Returns the one-dimensional piecewise linear interpolant to a function with given values at discrete data-points.

Parameters:

x : array_like

The x-coordinates of the interpolated values.

xp : 1-D sequence of floats

The x-coordinates of the data points, must be increasing if argument period登录查看完整内容