Learn R Programming

bioSNR (version 1.0)

opDB: opDB

Description

This function either adds, subtracts or averages dB values specified in function. This is for dB values in re to power, intensity or pressure.

Usage

opDB(dbs, PL, op = "add")

Value

A sinlge dB value

Arguments

dbs

A vector of dB values of all the same reference.

PL

Should be 10 if dB measurements were for intensity or power and 20 if dB measurements were for pressure.

op

Default = 'add'. Can be 'add', 'sub', or 'avg' to add, subtract, or average, respectively.

Examples

Run this code
#Given a set of intensity values, add them.
opDB(c(100, 101, 127, 96), 10)

Run the code above in your browser using DataLab