FACT++  1.0
bool Interpolator2D::SetOutputGrid ( std::size_t  n,
double *  x,
double *  y 
)
inline

Set a new output grid (the points at which you want interpolated or extrapolated values). Calculates new weights.

Parameters
nnumber of points
xx coordinates of points
ny coordinates of points
Returns
false if the calculation of the weights failed, true in case of success

Definition at line 419 of file Interpolator2D.h.

References CalculateWeights(), and i.

Referenced by ReadOutputGrid(), and ConnectionDimFSC::UpdateTemp().

420  {
421  if (inputGrid.empty() && n==0)
422  return false;
423 
424  weights.clear();
425 
426  outputGrid.clear();
427  outputGrid.reserve(n);
428  for (std::size_t i=0; i<n; i++)
429  outputGrid.emplace_back(i, x[i], y[i]);
430 
431  return CalculateWeights();
432  }
int i
Definition: db_dim_client.c:21
std::vector< point > outputGrid
positions of the data points (e.g. sensors)
bool CalculateWeights()
std::vector< point > inputGrid
std::vector< weight > weights
the calculated circles/triangles

+ Here is the call graph for this function:

+ Here is the caller graph for this function: