vectors giving the coordinates of the points to be
interpolated. x must be strictly monotonic
(either increasing or decreasing).
xi
points at which to interpolate.
Value
Normally, the interpolated signal, an array of length(xi).
if xi == NULL, a list of class pp, a piecewise
polynomial representation with the following elements:
xbreaks between intervals.
Pa 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.
nnumber of intervals (length(x) - 1).
kpolynomial order.
dnumber of polynomials.
Details
In contrast to spline, pchip preserves the monotonicity of
x and y.
References
Fritsch, F. N. and Carlson, R. E., "Monotone Piecewise Cubic
Interpolation," SIAM Journal of Numerical Analysis, vol. 17, pp.238-246, 1980.
Octave Forge http://octave.sf.net