Midpoint
A function that returns the wavelength (or value) at the center of the of the wavelength range of a waveband or spectrum object (or numeric vector).
wl_midpoint(x, ...) midpoint(x, ...) ## Default S3 method: midpoint(x, ...) ## S3 method for class 'numeric' midpoint(x, ...) ## S3 method for class 'waveband' midpoint(x, ...) ## S3 method for class 'generic_spct' midpoint(x, ...) ## S3 method for class 'generic_mspct' midpoint(x, ..., idx = "spct.idx")
x |
an R object |
... |
not used in current version |
idx |
character Name of the column with the names of the members of the collection of spectra. |
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:
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.