22 #ifndef EDSP_MAG2DB_HPP 23 #define EDSP_MAG2DB_HPP 25 #include <edsp/meta/expects.hpp> 28 namespace edsp {
inline namespace converter {
42 meta::expects(
magnitude > 0,
"Expected non negative value");
47 #endif // EDSP_MAG2DB_HPP constexpr T mag2db(T magnitude) noexcept
Convert magnitude to decibels (dB)
Definition: mag2db.hpp:41
constexpr T magnitude(const std::complex< T > &z)
Computes the magnitude of the complex number z.
Definition: complex.hpp:40
Definition: amplifier.hpp:29