FACT++
1.0
|
Extra- and interpolate in 2D. More...
#include <Interpolator2D.h>
Classes | |
struct | circle |
struct | point |
struct | vec |
struct | weight |
Public Member Functions | |
Interpolator2D () | |
Default constructor. Does nothing. More... | |
Interpolator2D (int n, double *x, double *y) | |
Interpolator2D (const std::vector< Interpolator2D::vec > &v) | |
const std::vector< Interpolator2D::weight > | getWeights () const |
const std::vector< Interpolator2D::point > | getInputGrid () const |
const std::vector< Interpolator2D::point > | getOutputGrid () const |
void | SetInputGrid (unsigned int n, double *x, double *y) |
void | SetInputGrid (const std::vector< Interpolator2D::vec > &v) |
bool | ReadInputGrid (const std::string &filename) |
bool | SetOutputGrid (std::size_t n, double *x, double *y) |
bool | SetOutputGrid (const std::vector< Interpolator2D::vec > &v) |
bool | ReadOutputGrid (const std::string &filename) |
std::vector< double > | Interpolate (const std::vector< double > &z) const |
Static Public Member Functions | |
static std::vector< Interpolator2D::vec > | ReadGrid (const std::string &filename) |
Private Member Functions | |
void | CalculateGrid () |
the weights used for the interpolation More... | |
bool | CalculateWeights () |
Private Attributes | |
std::vector< point > | inputGrid |
std::vector< point > | outputGrid |
positions of the data points (e.g. sensors) More... | |
std::vector< circle > | circles |
positions at which inter-/extrapolated values should be provided More... | |
std::vector< weight > | weights |
the calculated circles/triangles More... | |
Extra- and interpolate in 2D.
This class implements a kind of Delaunay triangulation. It calculated the Voronoi points and the corresponding Delaunay triangles. Within each triangle a bi-linear interpolation is provided.
A special selection criterion is applied for points outside the grid, so that extrapolation is possible. Note that extrapolation of far away points (as in the 1D case) is not recommended.
Definition at line 24 of file Interpolator2D.h.