M | R Documentation |
This function computes an acoustic index based on the median of the amplitude envelope.
M(wave, f, channel = 1, envt = "hil", plot = FALSE, ...)
wave |
an |
f |
sampling frequency of wave (in Hz). Does not need to be
specified if embedded in |
channel |
channel of the R object, by default left channel (1). |
envt |
the type of envelope to be used: either |
plot |
logical, if TRUE returns a plot of the amplitude envelope of wave (by default |
... |
other env parameters, in particular smoothing parameters. See |
This amplitude index M is computed according to:
M = \bar{A}(t) \times 2^{1-depth}
with
0 \leq M \leq 1
where A(t) is the amplitude envelope and depth is the signal digitization depth in number of bits.
A numeric vector of length 1 between 0 and 1, without unit.
Jerome Sueur and Marion Depraetere
Depraetere M, Pavoine S, Jiguet F, Gasc A, Duvail S, Sueur J (2012) Monitoring animal diversity using acoustic indices: implementation in a temperate woodland. Ecological Indicators, 13, 46-54.
env
, AR
data(tico)
M(tico)
# smoothing the amplitude may change slightly the result
M(tico, msmooth=c(500,50), plot=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.