I have a list of numeric measurements (see the graph below). Because these measurements are imprecise, each measurement is represented as a pair (min, max)
, where min
(blue) is <= the actual value and max
(red) is >= the actual value.
Now I'd like to fit a smooth curve (green) through these min/max pairs. Like bending a strip of flexible material to fit between the min/max pairs. I'm not looking for a continuous function; I'm just interested in the discrete values. That is, I'd like a single smoothed
value for each (min, max)
pair.
I'm sure there must be an existing algorithm for this. I just can't find it. Splines seem to be the obvious candidate, but I can't figure out how to fit a spline between min/max pairs.