pow2db: Power - decibel conversion

View source: R/pow2db.R

pow2dbR Documentation

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.

Author(s)

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

Examples

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


gsignal documentation built on Sept. 12, 2024, 6:27 a.m.