Template Function tap::algorithms::interpolateLinear2D
Defined in File math_user_utils.hpp
Function Documentation
-
template<typename T, size_t xSize, size_t ySize>
float tap::algorithms::interpolateLinear2D(const std::array<std::array<T, ySize>, xSize> &values, const float xMin, const float xMax, const float dx, const float yMin, const float yMax, const float dy, float xDes, float yDes) Bilinear Interpolation of a regularly-spaced grid of values. Let x = dimension 1 and y = dimension 2 of the 2D array of values.
- Parameters:
values – 2D-array pointer of f(x,y) values
- Returns:
approximation of values at (xdes,ydes)