Description Usage Arguments References Examples
The SCA measures the angle between two vectors corresponding to closely related spectra to measure whether they are the same or not (Wan *et al.* 2002).
1 | SCA(a, b)
|
a |
vector 1 |
b |
vector 2 |
Wan, K. X., Vidavsky, I., & Gross, M. L. (2002). Comparing similar spectra: from similarity index to spectral contrast angle. Journal of the American Society for Mass Spectrometry, 13(1), 85-88.
1 2 3 4 5 6 7 8 | # Load hyperSpec object
data("hs_example")
# Convert to MassSpectrum object
hs.x.proc <- hs_preprocess(hs_example)
# Calc SCA
disst <- SCA(hs.x.proc@data$spc[1,], hs.x.proc@data$spc[2,])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.