running_weighted_mean {diagis} | R Documentation |
Running weighted mean
Description
Computes running weighted mean of a vector or matrix, returning the values from each step.
Usage
running_weighted_mean(x, w, na.rm)
Arguments
x |
A numeric vector, matrix, three dimensional array, or an |
w |
A numeric vector of non-negative weights. Will be automatically normalised to sum to one. |
na.rm |
If |
Value
A vector containing the recursive weighted mean estimates.
[Package diagis version 0.2.3 Index]