到目前为止,PCHIP家族中最著名的成员是分段三次样条。所有pchip都是连续的,并且具有连续的一阶导数。样条是一种非常光滑的PCHIP,因为它的二阶导数和曲率也是连续变化的。该功能得名于用于绘制光滑曲线的柔性木材或塑料条。从大约50年前开始,卡尔·德·布尔发展了许多样条的基本理论。他写了一个被广泛采用的Fortran软件包和一本被广泛引用的书,用于涉及样条曲线的计算。后来,Carl编写了MATLAB样条工具箱。现在,样条工具箱是曲线拟合工具箱的一部分。当卡尔开始花键的发展,他是通用汽车研究在密歇根州。通用汽车刚刚开始使用数控机床。 It is essential that automobile parts have smooth edges and surfaces. If the hood of a car, say, does not have continuously varying curvature, you can see wrinkles in the reflections in the show room. In the automobile industry, a discontinuous second derivative is known as a "dent". The requirement of a continuous second derivative leads to a set of simultaneous linear equations relating the slopes at the interior knots. The two end points need special treatment, and the default treatment has changed over the years. We now choose the coefficients so that the第三导数在第一个和最后一个内部结点处没有跳跃。单立方块插值前三个数据点,后三个数据点。这就是所谓的“不打结”情况。它给内部点的方程组增加了两个方程。如果有的话n结,这给出了一个条件良好的,几乎对称的,三对角线n × n线性方程组来解斜率。该系统可以通过MATLAB中的稀疏反斜杠算子或自定义的非旋转三对角线求解器来求解。(其他样条的末端条件可在曲线拟合工具箱中获得。)您可能已经意识到,上面介绍的青色函数$s(x)$是样条插值样例数据的一部分。这是整个函数的图像,由interpgui不合格品,MATLAB数值计算.
X = 1:6;Y = [16 18 21 17 15 12];interpgui (x, y, 3)
评论
如欲留言,请点击在这里登录您的MathWorks帐户或创建一个新帐户。