|
Ember
|
Bilinear interpolation from data on a rectangular mesh. More...
#include <quasi2d.h>
Public Member Functions | |
| void | setup (const dmatrix &data, const dvec &x, const dvec &y) |
| Use the supplied data to set up the interpolation. | |
| double | get (double x, double y) const |
| Interpolate at point x,y. | |
Private Member Functions | |
| void | initialize () |
| initialize internally used data structures | |
Private Attributes | |
| dmatrix | data_ |
| Data values on a rectangular grid. | |
| dvec | x_ |
| dvec | y_ |
| x and y values defining the grid | |
| std::map< double, size_t > | xi_ |
| Indices corresponding to x and y values to speed up interpolation. | |
| std::map< double, size_t > | yi_ |
Bilinear interpolation from data on a rectangular mesh.
The mesh spacing can be irregular in each direction.
Use the supplied data to set up the interpolation.
| double BilinearInterpolator::get | ( | double | x, |
| double | y ) const |
Interpolate at point x,y.
|
private |
initialize internally used data structures
|
private |
Data values on a rectangular grid.
|
private |
|
private |
x and y values defining the grid
|
private |
Indices corresponding to x and y values to speed up interpolation.
|
private |