Last chance! 50% off unlimited learning
Sale ends in
A method that returns the wavelength [waveband
or of class
generic_spct
or derived (or the midpoint from a numeric
vector).
wl_midpoint(x, ...)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 = "spct.idx")
A numeric value equal to max(x) - min(x)) / 2
. In the case of
spectral objects a wavelength [min
and max
.
an R object
not used in current version
character Name of the column with the names of the members of the collection of spectra.
midpoint(default)
: Default method for generic function
midpoint(numeric)
: Default method for generic function
midpoint(waveband)
: Wavelength at center of a "waveband".
midpoint(generic_spct)
: Method for "generic_spct".
midpoint(generic_mspct)
: Method for "generic_mspct" objects.
Other wavelength summaries:
wl_min()
,
wl_range()
,
wl_stepsize()
Other wavelength summaries:
wl_min()
,
wl_range()
,
wl_stepsize()
Other wavelength summaries:
wl_min()
,
wl_range()
,
wl_stepsize()
midpoint(10:20)
midpoint(sun.spct)
wl_midpoint(sun.spct)
midpoint(sun.spct)
Run the code above in your browser using DataLab