find the most dissimilar spectra in a hyperSpec object. This function is a customized version of the function opa from the package alsace to work with objects of the class hyperSpec.
opa(x, ncomp = NULL, return_scaled = TRUE)
x | a hyperSpec object. |
---|---|
ncomp | integer, number of most dissimilar spectra to return. |
return_scaled | if TRUE, unit-length scaled spectra are returned, if FALSE the original intensities are retained. |
a hyperSpec object containing ncomp spectra.