Sums amplitudes for pairs of pure tones (vectorised).

sum_amplitudes(x, y, coherent = FALSE, dB = FALSE)

Arguments

x

(Numeric vector) First amplitude to sum.

y

(Numeric vector) Second amplitude to sum.

coherent

(Logical scalar) Whether or not the phases of the two tones are coherent.

dB

(Logical scalar) Whether or not the amplitudes are provided in decibels.