Monotone piecewise cubic Hermite interpolation through knots (Fritsch
and Carlson 1980, "Monotone piecewise cubic interpolation").
Interior slopes are the harmonic mean of the neighbouring secants when
those agree in sign and zero otherwise, which keeps each piece between
its knot values, so the curve never overshoots a knot. End slopes are
zero and the value is held constant beyond the end knots: the curve is
C1 everywhere, including where it meets the held ends. Knots closer
than merge in abscissa are one knot (the first is kept), so two
landmarks found at one place cannot make a zero-width piece.
Monotone piecewise cubic Hermite interpolation through knots (Fritsch and Carlson 1980, "Monotone piecewise cubic interpolation").
Interior slopes are the harmonic mean of the neighbouring secants when those agree in sign and zero otherwise, which keeps each piece between its knot values, so the curve never overshoots a knot. End slopes are zero and the value is held constant beyond the end knots: the curve is C1 everywhere, including where it meets the held ends. Knots closer than
mergein abscissa are one knot (the first is kept), so two landmarks found at one place cannot make a zero-width piece.