mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Cleanup docs.
This commit is contained in:
14
vendor/benchmark.js/benchmark.js
vendored
14
vendor/benchmark.js/benchmark.js
vendored
@@ -553,20 +553,6 @@
|
||||
(/^[\s(]*function[^(]*\(([^\s,)]+)/.exec(fn) || 0)[1]) || '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Computes the geometric mean (log-average) of a sample.
|
||||
* See http://en.wikipedia.org/wiki/Geometric_mean#Relationship_with_arithmetic_mean_of_logarithms.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} sample The sample.
|
||||
* @returns {number} The geometric mean.
|
||||
*/
|
||||
function getGeometricMean(sample) {
|
||||
return pow(Math.E, _.reduce(sample, function(sum, x) {
|
||||
return sum + log(x);
|
||||
}) / sample.length) || 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Computes the arithmetic mean of a sample.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user