FACT++  1.0
Interpolator2D Class Reference

Extra- and interpolate in 2D. More...

#include <Interpolator2D.h>

+ Collaboration diagram for Interpolator2D:


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::weightgetWeights () const
const std::vector< Interpolator2D::pointgetInputGrid () const
const std::vector< Interpolator2D::pointgetOutputGrid () 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::vecReadGrid (const std::string &filename)

Private Member Functions

void CalculateGrid ()
 the weights used for the interpolation More...
bool CalculateWeights ()

Private Attributes

std::vector< pointinputGrid
std::vector< pointoutputGrid
 positions of the data points (e.g. sensors) More...
std::vector< circlecircles
 positions at which inter-/extrapolated values should be provided More...
std::vector< weightweights
 the calculated circles/triangles More...

Detailed Description

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.

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