25#ifndef MATHUTILS_IMPLEMENTATIONS_H
26#define MATHUTILS_IMPLEMENTATIONS_H
32std::unique_ptr<Function>
linearInterpolation(
const std::vector<double>& x,
const std::vector<double>& y,
bool extrapolate);
35std::unique_ptr<Function>
splineInterpolation(
const std::vector<double>& x,
const std::vector<double>& y,
bool extrapolate);
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.