public static double AsNorm(this IEnumerable<double> source) { source.ShouldNotBeNull("source"); return source.Sum(x => x * x); }