cumul_mean: Cumulative mean

View source: R/misc.R

cumul_meanR Documentation

Cumulative mean

Description

Cumulative mean

Usage

cumul_mean(x, regularizer_obs = 0, regularizer_mean = 1/2)

Arguments

x

The real-valued data

regularizer_obs

How many fake "regularization" observations to add. Setting this to 0 corresponds to the usual cumulative sample mean, while larger values lead to more regularization.

regularizer_mean

The value of the fake regularization observations. If 'regularizer_obs' is 0, then this parameter has no effect on the output of 'cumul_mean'.

Value

The sample mean of 'x' at each time


WannabeSmith/sequential.causal documentation built on Sept. 12, 2023, 3:10 p.m.