Piecewise-Linear Maps and Their Application to Financial Markets