Learn R Programming

seewave (version 1.6.4)

csh: Continuous spectral entropy

Description

This function computes the continuous spectral entropy (H) of a time wave.

Usage

csh(wave, f, wl = 512, wn = "hanning", ovlp = 0, fftw = FALSE, threshold = NULL,
plot = TRUE, xlab = "Times (s)", ylab = "Spectral Entropy",
ylim = c(0, 1.1), type = "l", ...)

Arguments

Value

  • When plot is FALSE, csh returns a two-column matrix, the first column being time in seconds (x-axis) and the second column being the spectral entropy (y-axis) computed along time. NA corresponds to pause sections in wave (see threshold).

Details

See sh for computing method.

References

Toh, A. M., Togneri, R. & Nordholm, S. 2005 Spectral entropy as speech features for speech recognition. Proceedings of PEECS, pp. 60-65.

See Also

sh, th

Examples

Run this code
data(orni)
csh(orni,f=22050,wl=512,ovlp=50)
# 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)

Run the code above in your browser using DataLab