diff --git a/perf/perf.js b/perf/perf.js index abc51a64c..dd27c2ce2 100644 --- a/perf/perf.js +++ b/perf/perf.js @@ -114,7 +114,7 @@ * @returns {Number} The geometric mean. */ function getGeometricMean(array) { - return Math.pow(Math.E, _.reduce(array, function(sum, x) { + return Math.pow(Math.E, lodash.reduce(array, function(sum, x) { return sum + Math.log(x); }, 0) / array.length) || 0; }