dot-transform_params function

Internal function to transform parameters