detectPeaks-methods function

Detects peaks in a MassSpectrum object.