[SciPy-User] Interpolate a list of numbers?
Tue Sep 13 17:57:31 CDT 2011
I have an interpolation question...
I have a function that I am currently using to do interpolation.
def interpmap(c, x1, y1, x2, y2, base = None):
range1 = np.linspace(x1, y1, 20)
range2 = np.linspace(x2, y2, 20)
f = interpolate.interp1d(range1, range2)
I takes range (x1 <= y1) and maps it on to (x2 <= y2).
I would like to be able to specify a list of points as
the range. Is it possible to create a linspace from a list?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User