eDSP
0.0.1
A cross-platform DSP library written in C++.
feature
spectral
spectral_centroid.hpp
Go to the documentation of this file.
1
27
#ifndef EDSP_SPECTRAL_CENTROID_HPP
28
#define EDSP_SPECTRAL_CENTROID_HPP
29
30
#include <
edsp/statistics/centroid.hpp
>
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
centroid.hpp
edsp
Definition:
amplifier.hpp:29
edsp::statistics::centroid
constexpr meta::value_type_t< ForwardIt > centroid(ForwardIt first, ForwardIt last)
Computes the centroid value of the range [first, last)
Definition:
centroid.hpp:43
Generated by
1.8.13