in Source/Shared/arcana/algorithm.h [262:274]
inline const T mean(IteratorT from, IteratorT to, ModifierT&& modifier)
{
const auto n = std::distance(from, to);
const auto sumValue = sum<T>(from, to, modifier);
if (n == 0)
{
assert(false && "no median for an empty data set");
return {};
}
return sumValue / n;
}