code: private static double smoothed(int x, double slope, double intercept) {
          return Math.exp(intercept + slope * Math.log(x));
      }
docs: Returns the fitted linear function value y = intercept + slope * log(x).