Click or drag to resize
CsInterpolate Class
Extension of the Spline class to interpolate data points.
Inheritance Hierarchy

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
[SerializableAttribute]
public class CsInterpolate : Spline

The CsInterpolate type exposes the following members.

Constructors
Methods
  NameDescription
Public methodDerivative(Double)
Returns the value of the first derivative of the spline at a point.
(Inherited from Spline.)
Public methodDerivative(Double, Int32)
Returns the value of the derivative of the spline at a point.
(Inherited from Spline.)
Public methodDerivative(Double, Int32)
Returns the value of the derivative of the spline at each point of an array.
(Inherited from Spline.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEval(Double)
Returns the value of the spline at a point.
(Inherited from Spline.)
Public methodEval(Double)
Returns the value of the spline at each point of an array.
(Inherited from Spline.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBreakpoints
Returns a copy of the breakpoints.
(Inherited from Spline.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIntegral
Returns the value of an integral of the spline.
(Inherited from Spline.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

CsInterpolate computes a C^2 cubic spline interpolant to a set of data points (x_i, f_i) for i = 0, \ldots, n-1. The breakpoints of the spline are the abscissas. Endpoint conditions are automatically determined by the program. These conditions correspond to the "not-a-knot" condition (see de Boor 1978), which requires that the third derivative of the spline be continuous at the second and next-to-last breakpoint. If n is 2 or 3, then the linear or quadratic interpolating polynomial is computed, respectively.

If the data points arise from the values of a smooth, say, C^4 function f, i.e. f_i = f(x_i), then the error will behave in a predictable fashion. Let \xi be the breakpoint vector for the above spline interpolant. Then, the maximum absolute error satisfies


            |f-s|_{[\xi_0,\xi_n]} \le C \left\|f^{(4)}\right\|_{[{\xi_0 ,\xi_n }]} 
            |\xi|^4
where
|\xi|\;: = \max_{i=0,\ldots,n-1} 
            \left|\xi_{i+1} - \xi_i \right|

For more details, see de Boor (1978, pages 55-56).

See Also

Reference

Other Resources