locate.peaks(peak.base, num.pts = 5, R2.thresh = 0.98, oneside.min = 1, peak.method = c("parabola", "locmaxes"), thresh = -Inf)peak.method == "parabola", the algorithm works by locating local maxima in the spectrum,
then seeing if any num.pts consecutive points with at least oneside.min point(s) on each side
of the local maximum have a coefficient of determination ($R^2$) of at least R2.thresh when fitted with a
quadratic. If, in addition, the coefficient of the squared term is negative, then this is declared a peak
and the vertex of the corresponding parabola is located. The coordinates of the vertex give the components
Center_hat and Max_hat in the return value. The Width_hat component is the negative
reciprocal of the coefficient of the squared term.If peak.method == "locmax", then the algorithm merely returns the set of local maxima larger than
thresh, and the Width_hat component of the return value is NA.
Barkauskas, D.A. et al. (2009b) Analysis of MALDI FT-ICR mass spectrometry data: A time series approach. Analytica Chimica Acta, 648:2, 207--214.
Barkauskas, D.A. et al. (2009c) Detecting glycan cancer biomarkers in serum samples using MALDI FT-ICR mass spectrometry data. Bioinformatics, 25:2, 251--257.
run.peaks