Class GriddedInterpolant
Defined in File GriddedInterpolant.hpp
Nested Relationships
Nested Types
Class Documentation
Class which performs bivariate cubic interpolation on a 2D grid of equally spaced data.
Public Functions
Constructor.
- Parameters
x_vector – 1 x N Vector representing x-axis values, where N > 2.
y_vector – 1 x M Vector representing y-axis values, where M > 2.
q_mat – N x M grid of map values at grid points (x,y)
- Throws
std::invalid_argument – if
x_vectorory_vectorhave less than three elements, or ifqis not NxM and the error mode is ErrorMode::DIE for either case.
Function which provides the interpolated value on the map q at the point (
x,y) using a bivariate cubic interpolation method.- Parameters
x – X query point for interpolated value on map q
y – Y query point for interpolated value on map q
- Throws
std::invalid_argument – if
xoryare outside map q and the error mode is ErrorMode::DIE.- Returns
Interpolated value at (
x,y).