public class CsPeriodic extends Spline
CsPeriodic computes a cubic
spline interpolant to a set of data points for
. The breakpoints of the spline are the abscissas.
The program enforces periodic endpoint conditions. This means that the spline
s satisfies s(a) = s(b),
, and , where a is the leftmost abscissa
and b is the rightmost abscissa. If the ordinate values
corresponding to a and b are not
equal, then a warning message is issued. The ordinate value at
b is set equal to the ordinate value at
a and the interpolant is computed.
If the data points arise from the values of a smooth (say ) periodic function f, i.e. , then the error will behave in a predictable fashion. Let be the breakpoint vector for the above spline interpolant. Then, the maximum absolute error satisfies
For more details, see de Boor (1978, pages 320-322).
|Constructor and Description|
Constructs a cubic spline that interpolates the given data points with periodic boundary conditions.
copyAndSortData, copyAndSortData, derivative, derivative, derivative, getBreakpoints, integral, value, value
public CsPeriodic(double xData, double yData)
doublearray containing the x-coordinates of the data. There must be at least 4 data points and values must be distinct.
doublearray containing the y-coordinates of the data. The arrays xData and yData must have the same length.
Copyright © 1970-2015 Rogue Wave Software
Built October 13 2015.