| self_spectra_to_dB | R Documentation |
This function converts self-spectra power values from a linear scale to decibels (dB). The transformation considers the receiver gain to adjust the power measurements accordingly.
self_spectra_to_dB(spectrum_values, receiver_gain)
spectrum_values |
A numeric vector. The power values in linear scale. |
receiver_gain |
A numeric scalar. The receiver gain in decibels (dB). |
The conversion follows the equation:
dB = 10 \log_{10}(|P|) - G
where:
\( dB \) is the power in decibels,
\( P \) is the self-spectra power in linear scale,
\( G \) is the receiver gain in decibels.
Absolute values of power are used to ensure valid logarithmic calculations.
A numeric vector of power values in decibels (dB).
dB_to_self_spectra for the reverse conversion.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.