34 namespace edsp {
namespace feature {
inline namespace temporal {
68 template <
typename ForwardIt>
77 filter(number_frames) {
82 template<
typename ForwardIt>
84 const auto e =
energy(first, last);
85 const auto energy_mean = filter.
tick(e);
~leq()=default
Default destructor.
value_type tick(value_type tick)
Applies a moving average filter to the single element.
Definition: moving_average_filter.hpp:136
std::size_t size_type
Definition: leq.hpp:45
leq(size_type number_frames)
Creates a leq estimator.
Definition: leq.hpp:76
T value_type
Definition: leq.hpp:46
value_type extract(ForwardIt first, ForwardIt last)
Definition: leq.hpp:83
constexpr auto energy(ForwardIt first, ForwardIt last)
Computes the energy of the elements in the range [first, last)
Definition: energy.hpp:46
This class estimates the Equivalent Continuous Sound Level over consecutive frames.
Definition: leq.hpp:44
Definition: amplifier.hpp:29
constexpr T pow2db(T power) noexcept
Convert power to decibels.
Definition: pow2db.hpp:41