On Thu, Oct 14, 2010 at 09:29, sleepy <[email protected]> wrote:
> I'm doing some statistics on my data and wondering is there
> an straightforward way of calculating the mean value through reduce
> function.
> Maybe a build-in reduce function or something...

I don't think there's a built-in average function, but the obvious
solution here is to return an array with two elements: the sum of all
values you'd like to average, and the number of these values.

Cheers,

Dirkjan

Reply via email to