Normalizes a list.
List<double> normalizeList(Iterable<T> list) { return list.map(normalize).toList(); }