get.freq.res: Extract the frequency resolution from a spectrogram

Description Usage Arguments Value Author(s) See Also Examples

View source: R/get.freq.res.R

Description

computes the difference between frequency bins in the spectrogram.

Usage

1

Arguments

spg

a spectrogram object

Value

a numeric value

Author(s)

Benjamin N. Taft ben.taft@landmarkacoustics.com

See Also

spectrogram

Examples

1
2
3
4
5
6
7
8
9
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (spg) 
{
    return(diff(attr(spg, "frequency")[1:2]))
  }

landmarkacoustics/SoundPoints-R documentation built on May 29, 2019, 9:14 a.m.