center_scale function

Function to scale and/or center the data