Learn R Programming

gsignal (version 0.3-7)

pow2db: Power - decibel conversion

Description

Convert power to decibel and decibel to power.

Usage

pow2db(x)

db2pow(x)

Value

Converted data, same type and dimensions as x.

Arguments

x

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

Author

P. Sudeepam
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.

Examples

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

Run the code above in your browser using DataLab