请输入您要查询的字词:

 

单词 CubicSplineInterpolation
释义

cubic spline interpolation


Suppose we are given N+1 data points {(xk,yk)} suchthat

a=x0<<xN.(1)

Then the function S(x) is called a cubic spline interpolation ifthere exists N cubic polynomials Sk(x) with coefficientssk,i  0i3 such that the following hold.

  1. 1.

    S(x)=Sk(x)=i=03sk,i(x-xk)ix[xk,xk+1]   0kN-1

  2. 2.

    S(xk)=yk   0kN

  3. 3.

    Sk(xk+1)=Sk+1(xk+1)   0kN-2

  4. 4.

    Sk(xk+1)=Sk+1(xk+1)   0kN-2

  5. 5.

    Sk′′(xk+1)=Sk+1′′(xk+1)   0kN-2

The set of points (1) are called the knots. The set ofcubic splines on a fixed set of knots, forms a vector spaceMathworldPlanetmath forcubic spline addition and scalar multiplication.

So we see that the cubic spline not only interpolates the data{(xk,yk)} but matches the first and second derivativesat the knots. Notice, from the above definition, one is free tospecify constraints on the endpoints. One common end pointconstraint is S′′(a)=0S′′(b)=0,which is called the natural spline. Other popular choices are theclamped cubic spline, parabolically terminated spline andcurvature-adjusted spline. Cubic splines are frequently used innumerical analysis to fit data. Matlab uses the command spline tofind cubic spline interpolations with not-a-knot end pointconditions. For example, the following commands would find thecubic spline interpolation of the curve 4cos(x)+1 and plot thecurve and the interpolation marked with o’s.

x = 0:2*pi;y = 4*cos(x)+1; xx = 0:.001:2*pi;yy = spline(x,y,xx);plot(x,y,'o',xx,yy)
随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 14:17:37