Computes running mean of a vector or matrix, returning the values from each step.
running_mean(x, na.rm)
A vector containing the recursive mean estimates.
A numeric vector, matrix, three dimensional array, or an mcmc
object from
the coda
package. For matrix, the mean is computed for each column, and
for array the sweep is done over the third dimension.
If TRUE
, NA
values in x
are
omitted from the computation. Default is FALSE
.