tt_ARRAVG function

dynamic tt_ARRAVG(
  1. List values
)

tt_ARRAVG(values): the average of several values

Implementation

dynamic tt_ARRAVG(List<dynamic> values) {
  final n = values.length;
  if (n == 0) return 0.0;
  return tt_ARRSUM(values) / n;
}