Reference/avgs

From Kx Wiki
Jump to: navigation, search

avgs (running averages function)

Computes the running averages of a list of numbers, i.e. applies function avg to successive prefixes of the argument.

Example

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.

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox