AdaptLevel <- function(inSignal,
indB) {
theRMS <- sqrt(sum(inSignal^2)/length(inSignal))
theFactor <- 10^(indB/20 - log10(theRMS))
outSignaldB <- inSignal*theFactor
return(as.numeric(outSignaldB))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.