function getMean(sample) {
      return (_.reduce(sample, function(sum, x) {
        return sum + x;
      }) / sample.length) || 0;
    }
Computes the arithmetic mean of a sample.

@private
@param {Array} sample The sample.
@returns {number} The mean.