Click or drag to resize

SmoothingCubicSplineBasespint1 Method

Initializes the arrays c, r and t for one dimensional cubic smoothing spline fitting by subroutine spfit1. The values df(i) are scaled so that the sum of their squares is n and the average of the differences x(i+1) - x(i) is calculated in avh in order to avoid underflow and overflow problems in spfit1. This subroutine sets ier if elements of x are non-increasing, if n is less than 3, if ic is less than n-1 or if dy(i) is not positive for some i.

Namespace: Altaxo.Calc.Interpolation
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void spint1(
	double[] x,
	out double avh,
	double[] y,
	double[] dy,
	out double avdy,
	int n,
	double[] a,
	double[][] C,
	int ic,
	double[][] R,
	double[][] T,
	ref int ier
)

Parameters

x  Double
Abscissae of the N data points. Must be ordered so that x[i] < x[i+1].
avh  Double
Output: contains the average of the differences x(i+1) - x(i).
y  Double
Ordinates of the N data points.
dy  Double
Relative standard deviation of the error associated with the data point i. Each df[i] must be positive. The values are scaled so that the sum of their squares is n.
avdy  Double
Contains the scaling factor for dy.
n  Int32
Number of data points.
a  Double
Spline coefficients of order 0 to be initialized.
C  Double
Spline coeffients of order 1, 2 and 3 to be initialized.
ic  Int32
Number of coefficents of order 1, 2 or 3. Usually one less than n.
R  Double
Work array to be initialized.
T  Double
Work array to be initialized.
ier  Int32
Output: 0 on success, or an error number if failed.
See Also