cum-mean ( seq -- seq' )


Vocabulary
math.statistics

Inputs
seqa sequence


Outputs
seq'a sequence


Word description
Returns the cumulative mean of seq.

Examples
USING: math.statistics prettyprint ; { 1.0 2.0 3.0 } cum-mean .
{ 1.0 1.5 2.0 }


Definition