Skip to contents

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.

Usage

self_spectra_to_dB(spectrum_values, receiver_gain)

Arguments

spectrum_values

A numeric vector. The power values in linear scale.

receiver_gain

A numeric scalar. The receiver gain in decibels (dB).

Value

A numeric vector of power values in decibels (dB).

Details

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.

See also

dB_to_self_spectra for the reverse conversion.