Computing cumulative sequences
Statistics

Prev:Computing histograms


Cumulative words build on accumulate and accumulate*.

Cumulative math:
cum-sum ( seq -- seq' )

cum-sum0 ( seq -- seq' )

cum-product ( seq -- seq' )

cum-product1 ( seq -- seq' )


Cumulative comparisons:
cum-min ( seq -- seq' )

cum-max ( seq -- seq' )


Cumulative counting:
cum-count ( seq quot: ( elt -- ? ) -- seq' )