Helper function for calculating the spectral resolution from
wavenumber data.
Usage
spec_res(x, ...)
# S3 method for default
spec_res(x, ...)
# S3 method for OpenSpecy
spec_res(x, ...)Arguments
- x
a numeric vector with
wavenumberdata or anOpenSpecyobject.- ...
further arguments passed to subfunctions; currently not used.
Details
The spectral resolution is the the minimum wavenumber, wavelength, or frequency difference between two lines in a spectrum that can still be distinguished.
Examples
data("raman_hdpe")
spec_res(raman_hdpe)
#> [1] 3.00527