From Kx Wiki
Revision as of 05:01, 20 September 2009 by Chris Burke
avgs (running averages function)
Computes the running averages of a list of numbers, i.e. applies function avg to successive prefixes of the argument.
q)avgs 1 2 3 0n 4 -0w 0w 1 1.5 2 2 2.5 -0w 0n
For a complete list of functions, see the kdb+ Function Reference.