#include <interpolation.hpp>
Inheritance diagram for BiCubicInterpolation2D:
Public Member Functions | |
BiCubicInterpolation2D (size_t n, size_t m, const std::vector< double > &f) | |
Constructor. | |
virtual | ~BiCubicInterpolation2D () |
Destructor. | |
virtual double | operator() (double x, double y) const |
Operator for getting interpolation at (x,y). |
Calculates the derivatives of the function at mesh points using central finite differences. Zero derivatives are assumed at boundaries.
BiCubicInterpolation2D::BiCubicInterpolation2D | ( | size_t | n, | |
size_t | m, | |||
const std::vector< double > & | f | |||
) |
Constructor.
virtual BiCubicInterpolation2D::~BiCubicInterpolation2D | ( | ) | [inline, virtual] |
Destructor.
virtual double BiCubicInterpolation2D::operator() | ( | double | x, | |
double | y | |||
) | const [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.