An Algorithm for Approximation by Step Functions
arXiv:1412.2379
Abstract
An algorithm is given for determining an optimal -step approximation of weighted data, where the error is measured with respect to the norm. For data presorted by the independent variable the algorithm takes time and space. This is in the worst case and when . A minor change determines an optimal reduced isotonic regression in the same time and space bounds, and the algorithm also solves the -center problem for 1-dimensional weighted data.