.. _program_listing_file_src_navtk_utils_CubicSplineModel.hpp: Program Listing for File CubicSplineModel.hpp ============================================= |exhale_lsh| :ref:`Return to documentation for file ` (``src/navtk/utils/CubicSplineModel.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include #include #include #include #include namespace navtk { namespace utils { class CubicSplineModel : public InterpolationModel { public: CubicSplineModel(const std::vector &x, const std::vector &y); double y_at(double x_interp) override; private: /* * Solution of the system of equations that describes the cubic spline model; also happens to be * the set of first-order terms of the polynomial coefficients, size N. */ Vector der; /* * Second order terms of the splines polynomial coefficients, size N. */ Vector c; /* * 3rd order terms of the splines polynomial coefficients, size N. */ Vector d; }; } // namespace utils } // namespace navtk