with simple things like this i cant help but think things are much easier to program in c rather than thinking in terms of signal processing...
is there an easy way of getting the average? bearnig in mind i might want to change the array size later so i want to avoid a big chain of additions followed by a division.