internal function: cumulative mean

cummean(x)

Arguments

x

numeric vector

Value

vector of cumulative mean

Examples

GUESSFM:::cummean(1:10)
#> [1] 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5