这应该类似于图像重新封装,假设有这个向量,
x = np.array([10,50,40,20])
我需要将其缩放到10号,并使用插值填充丢失的值。
任何 numpy 或 scipy 这样做的功能?
numpy
scipy