dbtopower | R Documentation |
The function converts from decibels to a linear scale
dbtopower(specdata, const = 10, base = 10, inv = FALSE)
specdata |
A numeric object or an object of class trackdata |
const |
A single element numeric vector. Defaults to 10 |
base |
A single element numeric vector. Defaults to 10 |
inv |
Logical. If TRUE, then the conversion is from a logarithmic to an anti-logarithmic form, otherwise the other way round |
The function returns base\mbox{\textasciicircum}
(specdata/const)
if inv=FALSE, otherwise, const * log(dat, base=base). If the object to which
this function is applied is of class 'trackdata' then this function is
applied to $data.
An object of the same class.
Jonathan Harrington
dbtopower
plot.spectral
# convert 10 dB to a power ratio
vec = dbtopower(10)
# convert dB-data to a power ratio and back to decibels
res = dbtopower(vowlax.dft.5)
res = dbtopower(res, inv=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.