amplitude_to_dB: Convert amplitude to decibels

View source: R/scales.R

amplitude_to_dBR Documentation

Convert amplitude to decibels

Description

Represents an input amplitude vector in decibels.

Usage

amplitude_to_dB(amplitude, unit_amplitude_in_dB)

Arguments

amplitude

Numeric vector of amplitudes, on a linear scale.

unit_amplitude_in_dB

(Numeric scalar) The decibel value to which an amplitude of 1 should be mapped.

Value

Numeric vector of decibels.

See Also

dB_to_amplitude.


pmcharrison/hrep documentation built on Feb. 18, 2024, 2:33 a.m.