A function that returns the wavelength at the center of the wavelength range.
midpoint(x, ...)# S3 method for default
midpoint(x, ...)
# S3 method for numeric
midpoint(x, ...)
# S3 method for waveband
midpoint(x, ...)
# S3 method for generic_spct
midpoint(x, ...)
# S3 method for generic_mspct
midpoint(x, ..., idx = !is.null(names(x)))
an R object
not used in current version
logical whether to add a column with the names of the elements of spct
A numeric value equal to (max(x) - min(x)) / 2. In the case of spectral
objects a wavelength in nm. For any other R object, according to available
definitions of min
and max
.
default
: Default method for generic function
numeric
: Default method for generic function
waveband
: Wavelength at center of a "waveband".
generic_spct
: Method for "generic_spct".
generic_mspct
: Method for "generic_mspct" objects.
Other wavelength summaries: min
,
range
, stepsize