def lininterp2(x1, y1, x):
"""Linear interpolation at points x between numpy arrays (x1, y1).
Only y1 is allowed to be two-dimensional. The x1 values should be sorted
from low to high. Returns a numpy.array of y values corresponding to
points x.
"""
return splev(x, splrep(x1, y1, s=0, k=1))
评论列表
文章目录