complex_2_db
- pmrf.math.complex_2_db(z: Array | ndarray | bool | number | bool | int | float | complex)
Return the magnitude in dB of a complex number (as \(20\log_{10}(|z|)\)).
The magnitude in dB is defined as \(20\log_{10}(|z|)\) where \(z\) is a complex number.
- Parameters:
z (number or array_like) – A complex number or sequence of complex numbers.
- Returns:
mag20dB – The magnitude in decibels.
- Return type:
ndarray or scalar