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