Ember
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
BilinearInterpolator Class Reference

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_
 

Detailed Description

Bilinear interpolation from data on a rectangular mesh.

The mesh spacing can be irregular in each direction.

Member Function Documentation

◆ setup()

void BilinearInterpolator::setup ( const dmatrix data,
const dvec x,
const dvec y 
)

Use the supplied data to set up the interpolation.

◆ get()

double BilinearInterpolator::get ( double  x,
double  y 
) const

Interpolate at point x,y.

◆ initialize()

void BilinearInterpolator::initialize ( )
private

initialize internally used data structures

Member Data Documentation

◆ data_

dmatrix BilinearInterpolator::data_
private

Data values on a rectangular grid.

◆ x_

dvec BilinearInterpolator::x_
private

◆ y_

dvec BilinearInterpolator::y_
private

x and y values defining the grid

◆ xi_

std::map<double, size_t> BilinearInterpolator::xi_
private

Indices corresponding to x and y values to speed up interpolation.

◆ yi_

std::map<double, size_t> BilinearInterpolator::yi_
private

The documentation for this class was generated from the following files: