This function returns the mean response for a given waveband and a response spectrum.
resp_spct(spct, w.band, unit.out, quantity, time.unit, wb.trim, use.hinges, ...)
an object of class response_spct".
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.
character with allowed values "energy", and "photon", or its alias "quantum".
character string One of "total", "average" or "mean", "contribution", "contribution.pc", "relative" or "relative.pc".
logical if TRUE wavebands crossing spectral data boundaries are trimmed, if FALSE, they are discarded.
logical Flag indicating whether to insert "hinges" into the spectral data before integration so as to reduce interpolation errors at the boundaries of the wavebands.
other arguments (possibly used by derived methods).
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 waveband
objects.