Returns the average value of values.
See IterableExtensions.avgOfDouble.
double avg() => isNotEmpty ? sum() / length : 0;