[R] Using "R" to find peaks in sampled data
wsi at gcal.ac.uk
Tue May 29 16:46:29 CEST 2001
> In any case, I have some sampled data that has peaks,
> and I would like to extract peak height, location, and
> width, according to almost any statistical model.
> Gaussian would seem to make the most sense.
Be specific about the form of your data.
Do you mean that you have a single variable you measured, and you are
talking about peaks of some histogram of the data? Or do you have
x,y data? If the latter, the peak height is just max(y), and the location
is x[y==max(y)]. The width is not too hard; I have a function that finds
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help