FACT++  1.0
void Interpolator2D::SetInputGrid ( unsigned int  n,
double *  x,
double *  y 
)
inline

Set a new input grid (the points at which values are known). Invalidates the output grid and the calculated weights. Calculates the triangles corresponding to the new grid.

Parameters
nnumber of data points
xx coordinates of data points
ny coordinates of data points

Definition at line 347 of file Interpolator2D.h.

References CalculateGrid(), and i.

Referenced by Interpolator2D(), and ReadInputGrid().

348  {
349  circles.clear();
350  weights.clear();
351  outputGrid.clear();
352 
353  inputGrid.clear();
354  inputGrid.reserve(n);
355  for (unsigned int i=0; i<n; i++)
356  inputGrid.emplace_back(i, x[i], y[i]);
357 
358  CalculateGrid();
359  }
void CalculateGrid()
the weights used for the interpolation
int i
Definition: db_dim_client.c:21
std::vector< point > outputGrid
positions of the data points (e.g. sensors)
std::vector< point > inputGrid
std::vector< circle > circles
positions at which inter-/extrapolated values should be provided
std::vector< weight > weights
the calculated circles/triangles

+ Here is the call graph for this function:

+ Here is the caller graph for this function: