resampling_FWHM {CWT} | R Documentation |
Full Width Half Maximum Resampling
Description
It resample spectra data using Full Width Half Maximum (FWHM).
Usage
resampling_FWHM(spectra, wavelengths, new_wavelengths, FWHM, threads = 1L)
Arguments
spectra |
A |
wavelengths |
A |
new_wavelengths |
A |
FWHM |
A |
threads |
An |
Value
It returns a data.table
with the resampled spectra, where columns
are the new bands and rows are samples.
Author(s)
J. Antonio Guzmán Q.
Examples
mean <- 50
sd1 <- 5
sd2 <- 10
n <- 100
test <- matrix(c(dnorm(1:n, mean = mean, sd = sd1),
dnorm(1:n, mean = mean, sd = sd2)),
nrow = 2,
byrow = TRUE)
current_bands <- 1:n
new_bands <- seq(10, 90, by = 5)
FHWM <- rep(5, length(new_bands))
resampling_FWHM(spectra = test,
wavelengths = current_bands,
new_wavelengths = new_bands,
FWHM = FHWM)
[Package CWT version 0.2.1 Index]