mag2db

Magnitude to decibel conversion.

Namespace: dsp

Prototype

auto mag2db(const auto &x)

Parameters

xValue in linear units

Returns

Value in dB: \[ y = 20 \log_{10}(x) \]

Description

See also

db2pow(), pow2db(), db2mag()