transformation of stimulus functions formula