TMatrix.buildcubicspline Method

Builds the table of coefficients for cubic spline.

Definition

Namespace: SMath.Math.Numeric
Assembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.73.9126.0
C#
public void buildcubicspline(
	double[] x,
	double[] y,
	int n,
	int boundltype,
	double boundl,
	int boundrtype,
	double boundr,
	out double[] c
)

Parameters

x  Double[]
Abscisses, array with numbering of elements [0..N-1].
y  Double[]
Function values, array with element numbering [0..N-1].
n  Int32
Number of points, N>=2.
boundltype  Int32
Boundary condition type (left border).
boundl  Double
The value of the first (or second, depending on BoundType) derivative of the spline on the left border.
boundrtype  Int32
Boundary condition type (right border).
boundr  Double
The value of the first (or second, depending on BoundType) derivative of the spline on the right border.
c  Double[]
Table of spline coefficients for use in the SplineInterpolation subroutine.

See Also