Fork me on GitHub
#data-science
<
2018-05-26
>
Peter Wilkins09:05:45

Hi everyone, I’m porting some python code to clojure. Can anyone suggest a library function or code that is the equivalent of numpy’s interp function? https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.interp.html I only need the same functionality as this example:

>>> xp = [1, 2, 3]
>>> fp = [3, 2, 0]
>>> np.interp(2.5, xp, fp)
1.0