eDSP  0.0.1
A cross-platform DSP library written in C++.
spectral_flatness.hpp
Go to the documentation of this file.
1 
27 #ifndef EDSP_SPECTRAL_FLATNESS_HPP
28 #define EDSP_SPECTRAL_FLATNESS_HPP
29 
31 
32 namespace edsp { namespace feature { inline namespace spectral {
33 
34 
45  template <typename ForwardIt>
46  constexpr auto spectral_flatness(ForwardIt first, ForwardIt last) {
47  return statistics::flatness(first, last);
48  }
49 
50 }}}
51 
52 #endif //EDSP_SPECTRAL_FLATNESS_HPP
constexpr auto spectral_flatness(ForwardIt first, ForwardIt last)
Computes the spectral flatness of the of the magnitude spectrum represented by the elements in the ra...
Definition: spectral_flatness.hpp:46
constexpr meta::value_type_t< ForwardIt > flatness(ForwardIt first, ForwardIt last)
Computes the flatness value of the range [first, last)
Definition: flatness.hpp:44
Definition: amplifier.hpp:29