Least squares fitting of piecewise algebraic curves. Zhu, Chun-Gang, Wang, Ren-Hong (2007) Mathematical Problems in Engineering