resampling, interpolating matrix

前端 未结 8 1495
-上瘾入骨i
-上瘾入骨i 2020-12-17 22:02

I\'m trying to interpolate some data for the purpose of plotting. For instance, given N data points, I\'d like to be able to generate a \"smooth\" plot, made up of 10*N or s

8条回答
  •  忘掉有多难
    2020-12-17 22:07

    Small improvement. Use the built-in numpy.sinc(x) function which runs in compiled C code.

    Possible larger improvement: Can you do the interpolation on the fly (as the plotting occurs)? Or are you tied to a plotting library that only accepts a matrix?

提交回复
热议问题