knotave(SEL)
knotave()所属R语言包:SEL
Calculate the knot averages of a B-spline basis.
计算的B样条基的平均结。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Calculates the knot averages of a B-spline basis.
计算的B样条基的平均结。
用法----------Usage----------
knotave(knots, d)
参数----------Arguments----------
参数:knots
Knot Vector (with d+1 coincident knots on the boundaries).
结矢量(与d +1相一致的边界节)。
参数:d
Degree of the B-spline basis.
B样条基的程度。
值----------Value----------
Numeric containing knot averages
数字平均含结
(作者)----------Author(s)----------
Bjoern Bornkamp
参考文献----------References----------
Bornkamp, B. and Ickstadt, K. (2009). A Note on B-Splines for Semiparametric Elicitation. The American Statistician, 63, 373–377
Dierckx, P. (1993), Curve and Surface Fitting with Splines, Clarendon Press
参见----------See Also----------
SEL
SEL
实例----------Examples----------
## Example for calculation of a control polygon[#示例计算控制多边形]
knts <- c(rep(0, 4), rep(1, 4))
cf <- c(-1, -1, 1/2, 0)
sq <- seq(0, 1, length = 101)
N <- splineDesign(sq, knots = knts, ord = 4)
res <- colSums(t(N)*cf)
plot(sq, res, type = "l", ylim = c(-1, 0.6))
kntAv <- knotave(knts, 3)
lines(kntAv, cf, col = "red") # add control polygon[添加控制多边形]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|