Normalise such that the values of the vector sum to one

normalise(a)

Arguments

a

a vector of numbers

Value