22 #ifndef EDSP_STATISTICAL_CREST_HPP 23 #define EDSP_STATISTICAL_CREST_HPP 27 namespace edsp {
namespace statistics {
42 template <
typename ForwardIt>
43 constexpr meta::value_type_t<ForwardIt>
crest(ForwardIt first, ForwardIt last) {
45 const auto computed_max = *std::max_element(first, last);
46 return computed_max / computed_mean;
51 #endif // EDSP_STATISTICAL_CREST_HPP constexpr meta::value_type_t< ForwardIt > crest(ForwardIt first, ForwardIt last)
Computes the crest value of the range [first, last)
Definition: crest.hpp:43
Definition: amplifier.hpp:29
constexpr meta::value_type_t< ForwardIt > mean(ForwardIt first, ForwardIt last)
Computes the average or mean value of the range [first, last)
Definition: mean.hpp:44