View source: R/createOctaveLevel.R
createOctaveLevel | R Documentation |
Creates (third) octave level or broadband measurements from finer resolution soundscape metrics, like Power Spectral Density (PSD) or Hybrid Millidecade (HMD) measures
createOctaveLevel(
x,
type = c("ol", "tol", "broadband", "bb"),
freqRange = NULL,
normalized = FALSE
)
x |
dataframe of soundscape metrics |
type |
one of |
freqRange |
a vector of the minimum and maximum center frequencies (Hz) desired
for the output. If |
normalized |
logical flag to return values normalized by the bandwidth of each octave level band (per Hz) |
To create new measurements, finer resolution metrics are cast to linear space, summed, and then re-logged. If input measurements are HMD values then they are assumed to be normalized per Hz, so levels are first corrected by the bandwidth before summing. In all other cases inputs are assumed to not be normalized per Hz measurements and are just summed.
a dataframe with summarised octave level band measurements
Taiki Sakai taiki.sakai@noaa.gov
psd <- loadSoundscapeData(system.file('extdata/PSDSmall.csv', package='PAMscapes'))
str(psd)
tol <- createOctaveLevel(psd, type='tol')
str(tol)
ol <- createOctaveLevel(tol, type='ol')
str(ol)
bb <- createOctaveLevel(psd, type='bb', freqRange=c(20, 150))
str(bb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.