calculate_spectral_entropy | R Documentation |
Calculate spectral entropy of a spectrum
calculate_spectral_entropy(peaks)
peaks |
A matrix of peaks, with two columns: m/z and intensity. |
A double value of spectral entropy.
mz <- c(100.212, 300.321, 535.325)
intensity <- c(37.16, 66.83, 999.0)
peaks <- matrix(c(mz, intensity), ncol = 2, byrow = FALSE)
calculate_spectral_entropy(peaks)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.