Evaluate Cubic Spline at Multiple Points
quantlib-numerical
Evaluate Cubic Spline at Multiple Points
Construct a cubic spline from data points and evaluate it at multiple query points. Cubic splines provide C2 continuity (smooth first and second derivatives) and are widely used in computer graphics, curve fitting, and financial modeling. Supports different boundary conditions: natural (second derivative = 0 at endpoints), clamped, or periodic. [Tier: BASIC, Credits: 1]
POST
Evaluate Cubic Spline at Multiple Points
Authorizations
API key for authentication. Get your key at https://api.fincept.in/auth/register
Body
application/json
X coordinates of data points
Example:
[0, 1, 2, 3, 4]Y coordinates of data points
Example:
[0, 1, 0.5, 0.75, 1.5]Points at which to evaluate the spline
Example:
[0.5, 1.5, 2.5, 3.5]Boundary condition type
Available options:
natural, clamped, periodic Example:
"natural"
