Function navtk::utils::quadratic_spline_interpolate
Defined in File interpolation.hpp
Function Documentation
-
std::pair<std::vector<Size>, std::vector<double>> navtk::utils::quadratic_spline_interpolate(const std::vector<double> &time_source, const std::vector<double> &data_source, const std::vector<double> &time_interp)
Interpolates using quadratic spline interpolation.
If source data/time is not available to interpolate for a
time_interptime tag, then, that time tag is unused. The unused index is reported to the user.- Parameters
time_source – the source time stamps to be interpolated
data_source – the source data to be interpolated
time_interp – the time stamps to interpolate the data
- Returns
A pair, where the first element is vector of unused indexes from
time_interp, and the second element is interpolated source data.