Add function to get an integral average of a list of numbers.