jabidof said:
I have a set of (x,y) data coming from measurements. When plotting the
points, i get a kind of staircases curve. I thus like to:
1st: smooth the data and
That depends on *how* you want to smooth the curve. If your data points
have to be on the smoothed curve, you may want to google for "cubic
interpolation" (or you may even get away with linear or quadratic
interpolation). If the problem is only that the plots don't "look nice",
you may want to check the manual of your plotting software - maybe it
can do this already.
Measurements often have an error. If you want to filter out these
errors, you may want to compute the average or median of a few adjacent
points or program some more sophisticated filter based on the known
properties of your measurements.
2nd: get the maximum of the smoothed curve.
Just sample the smoothed curve in sufficiently small intervals and take
the maximum of the samples. (There is probably a more accurate way for
each method of interpolation, but this is the simplest and most
general).
hp