Transfers spectra measured on the secondary instrument to the primary
instrument, with a transfer fitted by ds(), sst() or pds().
Usage
# S3 method for class 'specproc_transfer'
predict(object, newdata, ...)Value
The transferred spectra, a matrix (or a tibble for a data frame) with the wavelengths of the primary spectra.
Examples
data(forageLIBS)
wl <- suppressWarnings(as.numeric(names(forageLIBS)))
spectra <- as.matrix(forageLIBS[which(wl > 760 & wl < 780)])
secondary <- 0.8 * cbind(spectra[, -1], spectra[, ncol(spectra)]) + 50
transfer <- pds(spectra[1:30, ], secondary[1:30, ], win = 3)
transferred <- predict(transfer, secondary[31:40, ])
