Given an array of floating-point numbers, fill an array of the averages of consecutive element pairs of the original array.