smoothParameter: Smooth a parameter set using another parameter set

View source: R/smoothParameter.R

smoothParameterR Documentation

Smooth a parameter set using another parameter set

Description

Calculate the average of two parameter sets to smooth out any local anomalies. Mostly useful to smooth out a local (say OBK) parameter set using a global one (say NRW).

Technically this function calculates (1-weight) * para + weight * other ensuring that the names etc. of para are preserved.

Usage

smoothParameter(para, other, weight = 0.2)

Arguments

para

Parameter set to smooth

other

Other parameters to average in

weight

Weight of other parameters

Value

Weighted parameter set


babsim.hospital documentation built on May 30, 2022, 9:05 a.m.