arithmaticMean method

double arithmaticMean({
  1. required List values,
})

Implementation

double arithmaticMean({required List values}) {
  double mean = 0;
  double total = 0;
  for (double i in values) {
    total += i;
  }
  mean = total / values.length;

  return mean;
}