An iterative constrained least squares method for continuous piecewise linear approximation. (December 2022)