mean method

Value mean()

Implementation

Value mean() {
  final sum = values.reduce((a, b) => a + b);
  return sum * (1.0 / values.length);
}