pchip(signal)
pchip()所属R语言包:signal
Piecewise cubic hermite interpolation
分段三次Hermite插值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Piecewise cubic hermite interpolation.
分段三次Hermite插值。
用法----------Usage----------
pchip(x, y, xi = NULL)
参数----------Arguments----------
参数:x,y
vectors giving the coordinates of the points to be interpolated. x must be strictly monotonic (either increasing or decreasing).
给予的点的坐标的向量要插补。 x必须是严格单调(增加或减少)。
参数:xi
points at which to interpolate.
点内插。
Details
详细信息----------Details----------
In contrast to spline, pchip preserves the monotonicity of x and y.
相反,spline,pchip保留的单调性x和y。
值----------Value----------
Normally, the interpolated signal, an array of length(xi).
通常情况下,内插信号,一个数组length(xi)。
if xi == NULL, a list of class pp, a piecewise polynomial representation with the following elements:
如果xi == NULL,类pp,一个分段多项式表示包含下列元素的列表:
参数:x
breaks between intervals.
截断之间的时间间隔。
参数:P
a matrix with n times d rows and k columns. The ith row of P, P[i,], contains the coefficients for the polynomial over the ith interval, ordered from highest to lowest. There must be one row for each interval in x.
n倍d行k列矩阵。的第i行P,P[i,],包含在第i个时间间隔的多项式的系数,下令从最高到最低。必须有一个行的每一个区间中x。
参数:n
number of intervals (length(x) - 1).
的间隔数(length(x) - 1)。
参数:k
polynomial order.
多项式阶数。
参数:d
number of polynomials.
多项式的数目。
(作者)----------Author(s)----------
Original Octave version by Paul Kienzle
<a href="mailto:pkienzle@user.sf.net">pkienzle@user.sf.net</a>. Conversion to R by Tom Short.
参考文献----------References----------
Interpolation”, SIAM Journal on Numerical Analysis, vol. 17, pp. 238-246, 1980.
参见----------See Also----------
approx, spline, interp1
approx,spline,interp1
实例----------Examples----------
xf <- seq(0, 11, length=500)
yf <- sin(2*pi*xf/5)
xp <- c(0:10)
yp <- sin(2*pi*xp/5)
pch <- pchip(xp, yp, xf)
plot(xp, yp, xlim = c(0, 11))
lines(xf, pch, col = "orange")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|