R/conv.mean.R

Defines functions conv.mean

Documented in conv.mean

#'
#' @title Running mean function
#'
#' @description A running mean, intended to check when convergence is achieved (useful for setting mcsize or bssize).
#'
#' @param x a variable whose convergence we want to check
#'
#' @return returns a running mean of the variable whose convergence we want to check
#' @export
#'
#' @import stats
#'
#'
conv.mean <- function(x) {cumsum(x)/(1:length(x))}

Try the cfdecomp package in your browser

Any scripts or data that you put into this service are public.

cfdecomp documentation built on Aug. 12, 2021, 1:06 a.m.