Fortran software is developed that calculates a best piecewise monotonic approximation to <i>n</i> univariate data contaminated by random errors. The underlying method minimizes the weighted sum of the squares of the errors by requiring <i>k</i> − 1 sign changes in the first divided differences of the approximation, where <i>k</i> is a given positive… (More)