I need the functionality of numpy.interp()
from python in javascript.
Example - how do i implement this in javascript ?
result = np.interp(5,[0,10],[0,100])
I need the functionality of numpy.interp()
from python in javascript.
Example - how do i implement this in javascript ?
result = np.interp(5,[0,10],[0,100])
I don't know what numpy.interp()
is but I can Google it. Looks like it is:
https://docs.scipy.org/doc/numpy/reference/generated/numpy.interp.html
One-dimensional linear interpolation.
Then we Google javascript One-dimensional linear interpolation
and the first result is:
http://borischumichev.github.io/everpolate/
Cool! Yeah, I think there are libraries for what you would like to do.