resampling, interpolating matrix

前端 未结 8 1484
-上瘾入骨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:11

    If your only interest is to 'generate a "smooth" plot' I would just go with a simple polynomial spline curve fit:

    For any two adjacent data points the coefficients of a third degree polynomial function can be computed from the coordinates of those data points and the two additional points to their left and right (disregarding boundary points.) This will generate points on a nice smooth curve with a continuous first dirivitive. There's a straight forward formula for converting 4 coordinates to 4 polynomial coefficients but I don't want to deprive you of the fun of looking it up ;o).

提交回复
热议问题