Template Function parrot::stats::mode#
Defined in File parrot.hpp
Function Documentation#
-
template<typename Iterator, typename MaskIterator, typename Properties>
auto parrot::stats::mode(const fusion_array<Iterator, MaskIterator, Properties> &arr)# Return the most frequently occurring value; the smallest wins ties.
Boolean domains use a population count instead of sorting.
- Throws:
std::invalid_argument – if the input has no selected elements.