computeVolume: Compute the Volume of a Specified Shift Range in a 2D...

Description Usage Arguments Value Author(s) Examples

View source: R/computeVolume.R

Description

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

Usage

1
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(s)

Bryan A. Hanson, DePauw University.

Examples

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

ChemoSpec2D documentation built on Oct. 11, 2021, 9:06 a.m.