Ease analog pin input before sending command to a servo

If all you want is some smoothing rather than an exact average, you can achieve that without needing an array just by using a decaying average. Conceptually it works like this:

average = (weight * average) + ((1-weight) * newValue);

The bigger the value of weight, the slower it will be to respond.