Learn R Programming

gsignal (version 0.3-1)

pow2db: Power - decibel conversion

Description

Convert power to decibel and decibel to power.

Usage

pow2db(x)

db2pow(x)

Arguments

x

input data, specified as a numeric vector, matrix, or multidimensional array. Must be non-negative for numeric x.

Value

Converted data, same type and dimensions as x.

Examples

Run this code
# NOT RUN {
db <- pow2db(c(0, 10, 100))
pow <- db2pow(c(-10, 0, 10))

# }

Run the code above in your browser using DataLab