rformassspectrometry / Spectra

Low level infrastructure to handle MS spectra
https://rformassspectrometry.github.io/Spectra/
34 stars 24 forks source link

Add a method to calculate the entropy of all spectra #308

Closed jorainer closed 4 months ago

jorainer commented 5 months ago

Add a entropy method/function to calculate the entropy of all spectra in a Spectra object. The result should be returned as a numeric of length equal to the number of spectra. The function should have a parameter normalized = TRUE whether (or not) the normalized entropy should be calculated.

jorainer commented 4 months ago

Done with PR https://github.com/rformassspectrometry/Spectra/pull/309