docs: function weightedAverage2(x, y, opt_apriori) {
      var numerator = 0;
      var denominator = 0;
  
      var xWeight = (opt_apriori || 1) * Math.exp(1 - x);
      numerator += xWeight * x;
      denominator += xWeight;
  
      var yWeight = Math.exp(1 - y);
      numerator += yWeight * y;
      denominator += yWeight;
  
      return numerator / denominator;
    }