normalizeWeights

Mutates the supplied array such that the elements sum to 1.0