B-Splines and Smoothing Splines
In this toolbox, the definition of a B-spline with knotstj, ...,tj+kis given by
This is only one of several reasonable normalizations of the B-spline. It is chosen so that
但是,请查看GUI的参考页面,而不是试图理解上述公式bspligui
for some of the basic properties of the B-spline, and use that GUI to gain some firsthand experience with this intriguing function. Its most important property for the purposes of this toolbox is also the reason the letter B is in its name:
Every space of (univariate) piecewise-polynomials of a given order has aBasis consisting ofB-splines (hence the “B” in B-spline).
B-Spline Properties
BecauseBJ,kis nonzero only on the interval (tj..tj+k), the linear system for the B-spline coefficients of the spline to be determined, by interpolation or least squares approximation, or even as the approximate solution of some differential equation, isbanded, making the solving of that linear system particularly easy. For example, to construct a splinesof orderkwith knot sequencet1≤t2≤···≤tn+kso thats(xi)=yifori=1, ...,n,使用线性系统
对于未知B-Spline系数aj每个方程最多都有knonzero entries.
Also, many theoretical facts concerning splines are most easily stated and/or proved in terms of B-splines. For example, it is possible to match arbitrary data at sites uniquely by a spline of orderkwith knot sequence(t1, ..., tn+k)if and only ifBJ,k(xj)≠0for allj(Schoenberg-Whitney Conditions). Computations with B-splines are facilitated by stablerecurrence relations
这也有帮助conversion from B-form to ppform. The双功能
provides a useful expression for thejth B-spline coefficient of the splinesin terms of its value and derivatives at an arbitrary site τ betweentj和tJ+K。, 与ψj(t):=(tj+1–t)··(tJ+K。–1–t)/(k–1)!. It can be used to show thataj(s) is closely related tos在间隔[tj..tJ+K。], and seems the most efficient means for converting from ppform to B-form.
Variational Approach and Smoothing Splines
以上constructiveapproachis not the only avenue to splines. In thevariational方法,将样条作为一个最好的插值, e.g., as the function with smallestm在某些站点在所有匹配的规定函数值中的衍生物。事实证明,在许多可用的细条中,只有那些是分段 - 多项式的,或者也许是分段指数的人才发现了很多用途。特别有趣的是smoothing splines=sp,对于给定数据(xi,yi) 和x∊ [a..b], alli, and given corresponding positive weightswi,以及给定的smoothing parameterp,minimizes
over all functionsfwithmderivatives. It turns out that the smoothing splinesis a spline of order2mwith a break at every data site. The smoothing parameter,p, is chosen artfully to strike the right balance between wanting theerror measure
small and wanting theroughness measure
小的。希望是scontains as much of the information, and as little of the supposednoise, in the data as possible. One approach to this (used inspaps
) is to makef(dmf)尽可能小的条件E(f)be no bigger than a prescribed tolerance. For computational reasons,spaps
uses the (equivalent) smoothing parameterρ= p/(1 – p), i.e., minimizesρE(f) +F(Dmf). Also, it is useful at times to use the more flexible roughness measure
with λ a suitable positive weight function.