
Calculates the entropy similarity for two spectra.
Source:R/chemi_amos_entropy_similarity.R
chemi_amos_entropy_similarity.RdUsage
chemi_amos_entropy_similarity(
spectrum_1 = NULL,
spectrum_2 = NULL,
type = NULL,
window = NULL
)Arguments
- spectrum_1
Array of m/z intensity pairs. Should be formatted as an array of two-element arrays, each of which has the m/z value and the intensity value (in that order). Peaks should be sorted in increasing order of m/z values.
- spectrum_2
Array of m/z intensity pairs. Should be formatted as an array of two-element arrays, each of which has the m/z value and the intensity value (in that order). Peaks should be sorted in increasing order of m/z values.
- type
Type of mass window to use. Should be either "da" or "ppm".
- window
Size of the mass window to use. Will be in units of the 'type' argument.