25 #ifndef MATHUTILS_IMPLEMENTATIONS_H 26 #define MATHUTILS_IMPLEMENTATIONS_H 32 std::unique_ptr<Function>
linearInterpolation(
const std::vector<double>& x,
const std::vector<double>& y,
36 std::unique_ptr<Function>
splineInterpolation(
const std::vector<double>& x,
const std::vector<double>& y,
std::unique_ptr< Function > splineInterpolation(const std::vector< double > &x, const std::vector< double > &y, bool extrapolate)
Performs cubic spline interpolation for the given set of data points.
std::unique_ptr< Function > linearInterpolation(const std::vector< double > &x, const std::vector< double > &y, bool extrapolate)
Performs linear interpolation for the given set of data points.