摘要
阐述拉格朗日插值、分段线性插值、三次样条插值三种插值方法。运用三种插值方法对案例中2009~2018年的逐月平均气温进行插值。为了更好地比较三种插值方法的插值效果,利用Matlab软件进行计算、绘图,并结合平均绝对误差(MAE)和平均相对误差(MRE)公式对插值结果进行精度检验。
This paper describes three interpolation methods:Lagrangian interpolation,piecewise linear interpolation,and cubic spline interpolation.It uses three interpolation methods to interpolate the monthly average temperature from 2009 to 2018 in the case study.In order to better compare the interpolation effects of the three interpolation methods,it uses Matlab software for calculation and plotting,and combines the mean absolute error (MAE) and mean relative error (MRE) formulas to test the accuracy of the interpolation results.
作者
万顺妹
WAN Shunmei(Huanggang Vocational and Technical College,Hubei 438000,China)
出处
《电子技术(上海)》
2024年第3期58-60,共3页
Electronic Technology