Stewart Baldwin, A Complete Classification of the Piecewise Monotone Functions on the Interval, Transactions of the American Mathematical Society, Vol. 319, No. 1 (May, 1990), pp. 155-178 ...