This function returns the mean reflectance for a given waveband and a reflectance spectrum.
reflectance_spct(spct, w.band, quantity, wb.trim, use.hinges)
an object of class generic_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 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 indicating whether to use hinges to reduce interpolation errors
A single numeric value expressed as a fraction of one