code: private void fitParameters(Map<Long, Double> metricData) {
          mean = getMetricMean(metricData);
          variance = getMetricVariance(metricData);
      }
docs: Fits the mean and variance parameters to the data