eDSP  0.0.1
A cross-platform DSP library written in C++.
spectral_centroid.hpp
Go to the documentation of this file.
1 
27 #ifndef EDSP_SPECTRAL_CENTROID_HPP
28 #define EDSP_SPECTRAL_CENTROID_HPP
29 
31 
32 namespace edsp { namespace feature { inline namespace spectral {
33 
48  template <typename ForwardIt>
49  constexpr auto spectral_centroid(ForwardIt first, ForwardIt last, ForwardIt first2) {
50  return statistics::centroid(first, last, first2);
51  }
52 
53 }}}
54 
55 #endif //EDSP_SPECTRAL_CENTROID_HPP
Definition: amplifier.hpp:29
constexpr meta::value_type_t< ForwardIt > centroid(ForwardIt first, ForwardIt last)
Computes the centroid value of the range [first, last)
Definition: centroid.hpp:43