Learn R Programming

photobiology (version 0.9.6)

e_response: Energy-based photo-response

Description

This function returns the mean, total, or contribution of response for each waveband and a response spectrum.

Usage

e_response(spct, w.band, quantity, time.unit, wb.trim, use.hinges, ...)

## S3 method for class 'default':
e_response(spct, w.band, quantity, time.unit, wb.trim,
  use.hinges, ...)

## S3 method for class 'response_spct':
e_response(spct, w.band = NULL, quantity = "total",
  time.unit = NULL, wb.trim = getOption("photobiology.waveband.trim",
  default = TRUE), use.hinges = getOption("photobiology.use.hinges", default =
  NULL), ...)

## S3 method for class 'response_mspct':
e_response(spct, w.band = NULL, quantity = "total",
  time.unit = NULL, wb.trim = getOption("photobiology.waveband.trim",
  default = TRUE), use.hinges = getOption("photobiology.use.hinges", default =
  NULL), ..., idx = !is.null(names(spct)))

Arguments

spct
an R object
w.band
a waveband object or a list of waveband objects
quantity
character
time.unit
character or lubridate::duration
wb.trim
logical if TRUE wavebands crossing spectral data boundaries are trimmed, if FALSE, they are discarded
use.hinges
logical indicating whether to use hinges to reduce interpolation errors
...
other arguments
idx
logical whether to add a column with the names of the elements of spct

Value

  • A single numeric value expressed either as a fraction of one or a percentage, or a vector of the same length as the list of wave.bands. The quantity returned, although always on energy-based units, depends on the value of quantity.

Methods (by class)

  • default: Default method for generic function
  • response_spct: Method for response spectra.
  • response_mspct: Calculates energy response from aresponse_mspct

See Also

Other response functions: q_response, response

Examples

Run this code
e_response(ccd.spct, new_waveband(200,300))
e_response(photodiode.spct)

Run the code above in your browser using DataLab