csh {seewave} | R Documentation |
This function computes the continuous spectral entropy (H) of a time wave.
csh(wave, f, wl = 512, wn = "hanning", ovlp = 0, threshold = FALSE, plot = TRUE, xlab = "Times (s)", ylab = "Spectral Entropy", ylim = c(0, 1.1), ...)
wave |
data describing a time wave or a Sample
object created loading a wav file with loadSample
(package Sound). |
f |
sampling frequency of wave (in Hz) |
wl |
if at is not null, length of the window for the analysis
(even number of points). |
wn |
window name, see ftwindow (by default "hanning" ). |
ovlp |
overlap between two successive windows (in %). |
threshold |
amplitude threshold for signal detection (in %). |
plot |
logical, if TRUE plots the spectral entropy against time
(by default TRUE ). |
xlab |
title of the x axis. |
ylab |
title of the y axis. |
ylim |
the range of y values. |
... |
other plot graphical parameters. |
See sh
for computing method.
If plot
is FALSE
, csh
function returns a vector of
numeric data corresponding to the spectral entropy along the time wave.
The spectral entropy of a noisy signal will tend towards 1 whereas the spectral entropy of a pure tone signal will tend towards 0.
Jérôme Sueur jerome.sueur@univ-tours.fr
Toh, A. M., Togneri, R. & Nordholm, S. 2005 Spectral entropy as speech features for speech recognition. Proceedings of PEECS, pp. 60-65.
data(orni) csh(orni,f=22050,wl=512,ovlp=50,type="l") # using the threshold argument can lead to some edge effets # here sh=1 at the end of echemes csh(orni,f=22050,wl=512,ovlp=50,threshold=5,type="l")