moving-average ( seq n -- newseq )


Vocabulary
math.extras

Definition
USING: grouping math.statistics sequences ;

IN: math.extras

: moving-average ( seq n -- newseq ) <clumps> [ mean ] map ;