This function takes a range of frequencies for each dimension, and calculates the volume of the enclosed region.

computeVolume(spectra, F2range = NULL, F1range = NULL)

Arguments

spectra

An object of S3 class Spectra2D.

F2range

A formula giving a frequency range. May include "low" or "high" representing the extremes of the spectra. Values below or above the range of F2 are tolerated without notice and are handled as min or max, respectively.

F1range

As for F2range, but for the F1 dimension.

Value

A numeric vector of volumes, one for each spectrum.

Author

Bryan A. Hanson, DePauw University.

Examples

data(MUD1) tst <- computeVolume(MUD1, F2range = 3 ~ 4, F1range = 55 ~ 70)