Generates a vector of normalized decayed SMC efficacies for a time series where SMC is applied intermittently. Each decay curve is scaled so that its maximum value is 1.
Value
Numeric vector of the same length as SMC
, with decay values normalized to a max of 1 per SMC round.
Examples
smc_series <- c(0, 1, 0, 0, 0, 1, 0, 0)
calc_decay_arr(smc_series)
#> [1] 0.0000000 0.8976710 0.8972115 0.8966616 0.8960037 0.8976710 0.8972115
#> [8] 0.8966616