calculate_spectral_entropy: Calculate spectral entropy of a spectrum

View source: R/RcppExports.R

calculate_spectral_entropyR Documentation

Calculate spectral entropy of a spectrum

Description

Calculate spectral entropy of a spectrum

Usage

calculate_spectral_entropy(peaks)

Arguments

peaks

A matrix of peaks, with two columns: m/z and intensity.

Value

A double value of spectral entropy.

Examples

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)


msentropy documentation built on Aug. 8, 2023, 1:10 a.m.