Spectra object. There are currently three options, though others are readily added. "PQN" carries out "Probabalistic Quotient Normalization" as described in the reference. "TotInt" normalizes by total intensity. In this case, the y-data of a Spectra object is normalized by dividing each y-value by the sum of the y-values in a given spectrum. Thus each spectrum sums to 1. This method assumes that the total concentration of substances giving peaks does not vary across samples which may not be true. "Range" allows one to do something similar but rather than using the sum of the entire spectrum as the denominator, only the sum of the given range is used. This would be appropriate if there was an internal standard in the spectrum which was free of interferance.normSpectra(spectra, method = "PQN", RangeExpress = NULL)Spectra.data(SrE.IR)
res <- normSpectra(SrE.IR)
sumSpectra(res)Run the code above in your browser using DataLab