Learn R Programming

seewave (version 1.6.4)

specprop: Spectral properties

Description

This function returns a list of statistical properties of a frequency spectrum.

Usage

specprop(spec, f, str = FALSE, flim=NULL, plot = FALSE, type = "l", ...)

Arguments

Value

  • A list of 15 values is returned
  • meanmean frequency (see mean)
  • sdstandard deviation of the mean (see sd)
  • semstandard error of the mean
  • medianmedian frequency (see median)
  • modemode frequency, i.e. the dominant frequency
  • Q25first quartile (see quantile)
  • Q75third quartile (see quantile)
  • IQRinterquartile range (see IQR)
  • centcentroid, see note
  • skewnessskewness, a measure of asymmetry, see note
  • kurtosiskurtosis, a measure of peakedness, see note
  • sfmspectral flatness measure (see sfm)
  • shspectral entropy (see sh)
  • precfrequency precision of the spectrum

Details

The spectrum is converted in a probability mass function (PMF). If a selected value has to be selected with $, the argument str has to be set to FALSE.

Examples

Run this code
data(orni)
a<-meanspec(orni,f=22050,plot=FALSE)
specprop(a,f=22050)
# to get a single measure of the list
specprop(a,f=22050)$mode
# to get the results structured
specprop(a,f=22050,str=TRUE)
# to limit the analysis between 4 and 6 kHz
specprop(a,f=22050,flim=c(4,6),str=TRUE)
# plots
specprop(a,f=22050,plot=1)
specprop(a,f=22050,plot=2)

Run the code above in your browser using DataLab