double interpolate_linear_1D(const double pos_a, const double pos_b, const double val_a, const double val_b, const double pos, const bool clamp)
Computes the linearly interpolated value at a specified point using two surrounding data points.
Definition interpolation.hpp:17