/// <summary> /// Initialize the interpolation method with the given spline coefficients (sorted by the sample points t). /// </summary> /// <param name="samplePoints">Sample Points t, sorted ascending.</param> /// <param name="sampleValues">Sample Values x(t)</param> public void Initialize( IList <double> samplePoints, IList <double> sampleValues) { double[] derivatives = EvaluateSplineDerivatives( samplePoints, sampleValues, SplineBoundaryCondition.SecondDerivative, 0.0, SplineBoundaryCondition.SecondDerivative, 0.0); _spline.Initialize(samplePoints, sampleValues, derivatives); }
/// <summary> /// Initialize the interpolation method with the given spline coefficients (sorted by the sample points t). /// </summary> /// <param name="samplePoints">Sample Points t, sorted ascending.</param> /// <param name="sampleValues">Sample Values x(t)</param> public void Initialize( IList <double> samplePoints, IList <double> sampleValues) { double[] derivatives = EvaluateSplineDerivatives( samplePoints, sampleValues); _spline.Initialize(samplePoints, sampleValues, derivatives); }