25 #include <edsp/meta/iterator.hpp> 30 namespace edsp {
namespace statistics {
43 template <
typename ForwardIt>
44 constexpr meta::value_type_t<ForwardIt>
rssq(ForwardIt first, ForwardIt last) {
45 using input_t = meta::value_type_t<ForwardIt>;
46 const auto sum_square = std::inner_product(first, last, first, static_cast<input_t>(1));
47 return std::sqrt(sum_square);
52 #endif // EDSP_RSSQ_HPP
constexpr meta::value_type_t< ForwardIt > rssq(ForwardIt first, ForwardIt last)
Computes the root-sum-of-squares (RSSS) value of the range [first, last)
Definition: rssq.hpp:44
Definition: amplifier.hpp:29