bounded circular interpolation in python
问题 My question is something similar to the question here. In simple term I have a time series angle data which is bounded between [0, 360]. I need to compute an iterpolation between measurements. Currently, I am using scipy.interpolate.interp1d. To make my question clear here is an example, import numpy as np from scipy import interpolate data = np.array([[0, 2, 4], [1, 359, 1]]) # first row time index, second row angle measurements f = interpolate.interp1d(data[0, :], data[1, :], kind='linear',