R/computeVolume.R
computeVolume.Rd
This function takes a range of frequencies for each dimension, and calculates the volume of the enclosed region.
computeVolume(spectra, F2range = NULL, F1range = NULL)
An object of S3 class Spectra2D
.
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.
As for F2range
, but for the F1 dimension.
A numeric vector of volumes, one for each spectrum.
data(MUD1)
tst <- computeVolume(MUD1, F2range = 3 ~ 4, F1range = 55 ~ 70)