Class CubicSplineModel
Defined in File CubicSplineModel.hpp
Inheritance Relationships
Base Type
public navtk::utils::InterpolationModel(Class InterpolationModel)
Class Documentation
Cubic spline model, heavily inspired by scipy’s implementation of the ‘natural’ cubic spline with no extrapolation.
Public Functions
Constructor.
- Parameters
x – Independent sample points, size N.
y – Dependent sampled values at each
xelement, size N. Also 0th order terms of splines polynomial coefficients.
Get the interpolated data point at query value.
- Parameters
x_interp – Query point to generate interpolated data at.
- Returns
Interpolated data at
x_interp.