Use lodash.reduce in getGeometricMean of perf.js. [ci skip]

Former-commit-id: 7c5af9afcd56958e03f96d3f13f396894cf95f4b
This commit is contained in:
John-David Dalton
2013-04-24 21:48:04 -07:00
parent 17471a12d2
commit 499232f0e6

View File

@@ -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;
}