I\'m doing some statistics work, I have a (large) collection of random numbers to compute the mean of, I\'d like to work with generators, because I just need to compute the
One way would be
numpy.fromiter(Y, int).mean()
but this actually temporarily stores the numbers.