An algorithm has been derived that will identify the situation where a one-dimensional signal is a linearly stretched version of another and then correct for such distortion by expanding the ‘compressed’ trace. The application of the alogrithm to the the analysis of DNA fingerprint data is discussed.