GeometricMean Module¶
Module Contents¶
-
template<typename
forward_iterator_type
>
std::iterator_traits<forward_iterator_type>::value_typetracktable::arithmetic
::
geometric_mean
(forward_iterator_type input_begin, forward_iterator_type input_end)¶ NOTE: This function requires a ForwardIterator as its argument.
A ForwardIterator is one that can be traversed and dereferenced more than once.
-
template<typename
point_iterator_type
, typenameweight_iterator_type
>
std::iterator_traits<point_iterator_type>::value_typetracktable::arithmetic
::
weighted_sum
(point_iterator_type point_begin, point_iterator_type point_end, weight_iterator_type weight_begin, weight_iterator_type weight_end)¶ Weighted sum of points.
You are responsible for ensuring that point_iterator_type::value_type is a Tracktable point and that weight_iterator_type::value_type is a scalar. Also, point_iterator_type and weight_iterator_type must both be ForwardIterators.