I\'m converting a script from Python to Swift. In the original Python code I\'m doing a simple interpolation between two lists, using Numpy interp in the following format: