proportion function

Rescale a vector relative to the maximal absolute value in the vector