BiLinear 2d interpolation. More...
#include <interpolation.hpp>
Public Member Functions | |
BiLinearInterpolation2D (size_t n, size_t m, const std::vector< double > &f) | |
Constructor. | |
virtual | ~BiLinearInterpolation2D () |
Destructor. | |
virtual double | operator() (double x, double y) const |
Operator for getting interpolation at (x,y). | |
![]() | |
virtual | ~Interpolation2D () |
Virtual destructor. |
Additional Inherited Members | |
![]() | |
Interpolation2D (size_t n, size_t m, const std::vector< double > &f) | |
Constructor. | |
const double & | __f (int i, int j) const |
double & | __f (int i, int j) |
![]() | |
size_t | _n |
Size of first coordinate of mesh. | |
size_t | _m |
Size of second coordinate of mesh. | |
std::vector< double > | _f |
Function data mesh. |
BiLinear 2d interpolation.
BiLinearInterpolation2D::BiLinearInterpolation2D | ( | size_t | n, |
size_t | m, | ||
const std::vector< double > & | f | ||
) |
Constructor.
|
inlinevirtual |
Destructor.
|
virtual |
Operator for getting interpolation at (x,y).
Returns an interpolated value of the function at (x,y), where 0 <= (x,y) <= 1. Returns NaN outside this area.
Implements Interpolation2D.