static double[] normalizeDoubles(double[] l) {
  ret normalizeDoubles(l, 1);
}

static double[] normalizeDoubles(double[] l, double targetMax) {
  double factor = normalizationFactor(l, targetMax);
  ret doubleMul(l, factor);
}