Build average array.