This project has moved. For the latest updates, please go here.

Coefficients for Natural Cubic Spline

Jul 12, 2011 at 7:21 PM


Is there a way to retrieve the coefficients for specific points of a spline I create?  Either that, or the second derivative at specific points?


Jul 12, 2011 at 8:41 PM

Have a look at the static methods of the CubicSplineInterpolation class:

  • EvaluateSplineCoefficients(points, values, left and right boundaries)
  • EvaluateSplineDerivatives(points, values, left and right boundaries)

Also, built splines support both differentiation (first and second) and integration at arbitrary points, see the Differentiate and Integrate instance methods.