bilinear
Creates an empty map with bilinear interpolation.
Uses bilinear interpolation to approximate values between grid points using the formula:
\(q(x, y) = (1 - t_x)(1 - t_y) \cdot q_{00} + t_x(1 - t_y) \cdot q_{10} + (1 - t_x) t_y \cdot q_{01} + t_x t_y \cdot q_{11}\)
This is the most common interpolation method for 2D lookup tables.
Return
an empty InterpolatingMap2D with bilinear interpolation
fun bilinear(xKeys: List<Double>, yKeys: List<Double>, values: List<List<Double>>): InterpolatingMap2D(source)
Creates a map with bilinear interpolation initialized with given grid data.
Return
an InterpolatingMap2D with the given data and bilinear interpolation
Parameters
xKeys
the x-coordinates of the grid points (will be sorted)
yKeys
the y-coordinates of the grid points (will be sorted)
values
a 2D list where values[yIndex][xIndex] corresponds to point (xKeys[xIndex], yKeys[yIndex])
Throws
if dimensions don't match