SmoothingCubicSplineBasespcof1 Method |
Calculates coefficients of a cubic smoothing spline from
parameters calculated by subroutine spfit.
Namespace: Altaxo.Calc.InterpolationAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax protected static void spcof1(
double[] x,
double avh,
double[] y,
double[] dy,
int n,
double p,
double q,
double[] a,
double[][] C,
int ic,
double[] u,
double[] v
)
Parameters
- x Double
- Abscissae of the N data points. Must be ordered so that x[i] < x[i+1].
- avh Double
- 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 element must be positive. The values are scaled so that the sum of their squares is n.
- n Int32
- Number of data points.
- p Double
- Is equal to rho/(1 + rho), in which rho is the smoothing parameter.
- q Double
- Is equal to 1/(1 + rho), in which rho is the smoothing parameter.
- a Double
- Spline coefficients of order 0, i.e. the ordinate values of the spline (at the same abscissae values as the original data points).
- C Double
- Spline coefficients of order 1, 2 and 3.
- ic Int32
- Number of coefficents of order 1,2 and 3. Is one less the number of data points.
- u Double
- Work array.
- v Double
- Work array.
See Also