FACT++  1.0
std::vector<double> Interpolator2D::Interpolate ( const std::vector< double > &  z) const
inline

Perform interpolation.

Parameters
zValues at the coordinates of the input grid. The order must be identical.
Returns
A vector<double> is returned with the interpolated values in the same order than the putput grid. If the provided vector does not match the size of the inputGrid, an empty vector is returned.

Definition at line 488 of file Interpolator2D.h.

Referenced by ConnectionDimFSC::UpdateTemp().

489  {
490  if (z.size()!=inputGrid.size())
491  return std::vector<double>();
492 
493  std::vector<double> rc;
494  rc.reserve(z.size());
495 
496  for (auto it=weights.cbegin(); it<weights.cend(); it++)
497  rc.push_back(z[it->c.p[0].i] * it->w[0] + z[it->c.p[1].i] * it->w[1] + z[it->c.p[2].i] * it->w[2]);
498 
499  return rc;
500  }
std::vector< point > inputGrid
std::vector< weight > weights
the calculated circles/triangles

+ Here is the caller graph for this function: