transmittance_spct: Calculate transmittance from spectral transmittance.

Description Usage Arguments Value Note

Description

This function returns the mean transmittance for a given waveband of a transmittance spectrum.

Usage

1
transmittance_spct(spct, w.band, quantity, wb.trim, use.hinges)

Arguments

spct

an object of class "generic_spct"

w.band

waveband or list of waveband objects or a numeric vector of length two. The waveband(s) determine the region(s) of the spectrum that are summarized. If a numeric range is supplied a waveband object is constructed on the fly from it.

quantity

character string One of "total", "average" or "mean", "contribution", "contribution.pc", "relative" or "relative.pc"

wb.trim

logical Flag indicating if wavebands crossing spectral data boundaries are trimmed or ignored

use.hinges

logical Flag indicating whether to use hinges to reduce interpolation errors

Value

a single numeric value

Note

The last parameter controls speed optimization. The defaults should be suitable in mosts cases. Only the range of wavelengths in the wavebands is used and all BSWFs are ignored.



Search within the photobiology package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.