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.
Add a
entropy
method/function to calculate the entropy of all spectra in aSpectra
object. The result should be returned as anumeric
of length equal to the number of spectra. The function should have a parameternormalized = TRUE
whether (or not) the normalized entropy should be calculated.