template < class ForwardIterator, class Functor>
|
typename Functor::result_type
|
linear_interpolation ( |
ForwardIterator first,
ForwardIterator beyond,
typename std::iterator_traits<ForwardIterator>::value_type::second_type norm,
Functor function_values) |
|
| |
ForwardIterator::value_type
is a pair associating a point to a (non-normalized) barycentric
coordinate. norm is the normalization factor. Given a point,
the functor function_values allows to access a pair of a
function value and a Boolean. The Boolean indicates whether the
function value could be retrieved correctly. This function generates
the interpolated function value as the weighted sum of the values
corresponding to each point of the point/coordinate pairs in the
range [.first, beyond.).
Precondition: | norm ≠ 0.
function_value(p).second == true for all
points p of the point/coordinate pairs in the range
[.first, beyond.). |
|