rerange function

Linear transformation of data