GeometricMean Module
Module Contents
-
template<typename forward_iterator_type>
std::iterator_traits<forward_iterator_type>::value_type tracktable::arithmetic::geometric_mean(forward_iterator_type input_begin, forward_iterator_type input_end) Calculate the mean for the un-weighted input points
Note
This function requires a ForwardIterator as its argument. A ForwardIterator is one that can be traversed and dereferenced more than once.
- Parameters:
input_begin – [in] Start point for mean calculation
input_end – [in] End point for mean calculation
-
template<typename point_iterator_type, typename weight_iterator_type>
std::iterator_traits<point_iterator_type>::value_type tracktable::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
Note
You are responsible for ensuring that
point_iterator_type::value_typeis a Tracktable point and thatweight_iterator_type::value_typeis a scalar. Also,point_iterator_typeandweight_iterator_typemust both be ForwardIterators.- Parameters:
point_begin – [in] Start point for sum calculation
point_end – [in] End point for sum calculation
weight_begin – [in] Start of the point weights
weight_end – [in] End of the point weights