eDSP  0.0.1
A cross-platform DSP library written in C++.
spectral_rolloff.hpp
Go to the documentation of this file.
1 
27 #ifndef EDSP_SPECTRAL_ROLLOFF_HPP
28 #define EDSP_SPECTRAL_ROLLOFF_HPP
29 
31 
32 namespace edsp { namespace feature { inline namespace spectral {
33 
46  template <typename ForwardIt, typename Numeric>
47  constexpr auto spectral_rolloff(ForwardIt first, ForwardIt last, Numeric percentage = 0.95) {
48  return statistics::rolloff(first, last, percentage);
49  }
50 
51 }}}
52 
53 #endif //EDSP_SPECTRAL_ROLLOFF_HPP
constexpr auto spectral_rolloff(ForwardIt first, ForwardIt last, Numeric percentage=0.95)
Computes the spectral roll-off of the of the magnitude spectrum represented by the elements in the ra...
Definition: spectral_rolloff.hpp:47
constexpr auto rolloff(ForwardIt first, ForwardIt last, Floating percentage)
Computes the roll-off index of the elements in the range [first, last)
Definition: rolloff.hpp:42
Definition: amplifier.hpp:29