24 const std::vector<float>& xtabulated,
25 const std::vector<float>& ytabulated);
26 inline float calculate_interpolation(
const float& xval,
const float& x1,
const float& x2,
const float& y1,
const float& y2)
28 return y1+(y2-y1)*(xval-x1)/(x2-x1);
float calculate_interpolation(const float &xval, const float &x1, const float &x2, const float &y1, const float &y2)
float Interpolate(const float &xval, const std::vector< float > &xtabulated, const std::vector< float > &ytabulated)
Interpolation function.